Real-life Problems == Solved

Photo by Etienne Boulanger on Unsplash

Difficulty: Beginner | Easy | Normal | Challenging

This article has been developed using Xcode 12.5, and Swift 5.4

If you’re interested, or you prefer here is a YouTube video on the same topic:

https://youtu.be/pJIwdLlLHwE

Prerequisites:

Keywords and Terminology

Initialization: The process of preparing an instance of a class, structure, or enumeration for use

Parameter: A special kind of variable referring to a piece of data passed to a function

The high-level stuff

You might be a most excellent coder and separate out your UI code from your business…


Nicely does it

Photo by Agung Raharja on Unsplash

Before we start

Difficulty: Beginner | Easy | **Normal** | Challenging

This article has been developed using Xcode 12.4, and Swift 5.3.2

This is supported by the YouTube video

Prerequisites:

Why

You need to uniquely identify both values and objects — and this is often brought into focus when you are using Core Data in your project.

If you want to keep track of instances of your value types, you can use an `Identifier` in much the same way that you might use ObjectIdentifier for class-types (well…


There is no need to wrap a UIKit element

You need a TextField that a user actually might want to use to enter a currency. In SwiftUI. Well, this is it.

It not only prevents you adding Characters that don’t make sense for a currency filed, but also formats your input as you go.

Read on, to find out more.

Before we start

Difficulty: Beginner | Easy | Normal | Challenging

This article has been developed using Xcode 12.5, and Swift 5.4

This article is supported by a YouTube video: https://youtu.be/Alcyyr4YAXo

TextField: A control in SwiftUI that displays an editable text interface

  • You need to be able to create a SwiftUI project…


This can go wrong!

Photo by Josh Appel on Unsplash

Difficulty: Beginner | Easy | Normal | Challenging

This article has been developed using Xcode 12.5, and Swift 5.4

This will cover how we might store “money,” and make sure everything works as well as you might expect.

Take a look at the accompanying video: HERE

Prerequisites:

Terminology:

Denary: The name of the base 10 numbering system

Double: A double-precision, floating-point value type

How can we store “money” and make sure everything works as well as you might…


You can do it!

Difficulty: Beginner | Easy | Normal | Challenging

Missing the wonderful diagrams below, but this video might be of interest to you!

Prerequisites:

The setup

It is important to download images asynchronously. This can be placed in an extension, as follows:

That looks great!


Definitely worthwhile!

Photo by Wojtek Witkowski on Unsplash

Difficulty: Beginner | Easy | Normal | Challenging

Missing the wonderful diagrams below, but this video might be of interest to you!

You will be expected to be aware how to make a Single View Application

You might like to see an example of the Façade Pattern from This article

Design Pattern: a general, reusable solution to a commonly occurring problem

The Façade Design Pattern: An object that masks complex or underlying (perhaps containing complex or multiple classes) classes

The Façade Pattern in Swift

If you wish to obfuscate complex code it can provide an interface that masks that complexity. In other words, the…


Wait, you can?

Photo by Rachel on Unsplash

Difficulty: Beginner | Easy | Normal | Challenging

This article has been developed using Xcode 12.4, and Swift 5.3.2

* You will be expected to be aware how to make a Single View Application in Swift, or use Playgrounds to do the same

Dictionary: The association between keys and values (where all the keys are of the same type, and all values are of the same type)

The video

Watch me explain this myself: https://youtu.be/-NUzHVXL-FQ

The Dictionary

A Dictionary is a struct that provides fast access to the keys and values that it contains (great!)…


Get that first job!

Photo by James Harrison on Unsplash

There are plenty of reasons to get into App development. You might start off making some Apps for yourself, or your friends. You might even make a few of these Apps for the store, and Monazite them to gain income.

But what if you want to go professional? That is, get a job.

If you ask some businesses what experience and skills they would like their junior developers to have, you might see some (perhaps all) of the following:

  • Development experience on the iOS platform using Xcode, using Swift
  • Creative, hardworking and an eye for detail
  • Excellent communication skills

They…


Don’t forget the dependency injection!

https://youtu.be/Szjjj4rWMIs

Difficulty: Beginner | Easy | Normal | Challenging

This article has been developed using Xcode 12.4, and Swift 5.3.2

You can access a video version of this article @https://youtu.be/Szjjj4rWMIs

A simple problem that requires an article — now perhaps you want to lazy load images in a UITableView; but how would you possibly do that?

Even more important — how can we use dependency injection for this?

You will be expected to be aware how to make a Single View Application in Swift.

The standard answer

You can use an extension for this, so we can call it straight after setting the image…


Use the macOS Command Line Tool template

Photo by Hudson Roseboom on Unsplash

Taking an example project from LeetCode, I might try to find the answer for 1413. Minimum Value to Get Positive Step by Step Sum.

Now I told a lie, in one of these articles. Specifically in my Playgrounds article I said I don’t use Playgrounds for LeetCode challenges because of the setup. I actually don’t use Playgrounds because sometimes they are slooow, or don’t seem to work for me when I first start a new Playground. I don’t know why, perhaps it’s because I’m using a 2016 MBP? …

Steven Curtis

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store