

Jon Hoffman
- Jul 20, 2022
- 5 min
Swift Protocols Part 1: Understanding the Protocol
Protocols are the core in which the Swift programming language is built upon. Understanding how they work and what makes them so...
237 views


Jon Hoffman
- Jul 14, 2022
- 3 min
Facade Pattern: Protocol Oriented Design Pattern
The façade pattern is a structural pattern which shows us how to provide a simplified universal interface to a more complex set of...
50 views


Jon Hoffman
- Jul 10, 2022
- 4 min
Builder Pattern: Protocol Oriented Design Pattern
The builder pattern is a creational design pattern that separates the creation of a complex type from the representation. This enables...
203 views


Jon Hoffman
- Jul 9, 2022
- 5 min
Proxy Pattern: Protocol Oriented Design Patterns
The proxy pattern is a structural design pattern. It is a very underrated design pattern and is probably used in some form or another in...
126 views


Jon Hoffman
- Jul 7, 2022
- 2 min
LazyHStack and LazyVStack
Using stacks in SwiftUI enables us to very easily build complex user interfaces with ease. Anyone that has built an app, and has used...
113 views


Jon Hoffman
- Jun 30, 2022
- 6 min
Implementing Copy-On-Write
Apple says that we should prefer value types (structs) over reference types (classes). While there are number advantages with using...
169 views


Jon Hoffman
- Jun 25, 2022
- 2 min
Caching AsyncImage SwiftUI
A while back I was creating a list view where each element in the list displayed an image which was download from a web API and I use...
77 views


Jon Hoffman
- Jun 25, 2022
- 3 min
Swift – Replacing Static Constants with Enums
With other programming languages, we regularly used static and static final variables/constants to hold global values that we needed to...
85 views

Jon Hoffman
- Jun 25, 2022
- 2 min
Mastering Swift Cocktails App
Mastering Swift Cocktails is an Open Source iOS app, written in Swift and uses SwiftUI for the user interface. The code is distributed...
129 views


Jon Hoffman
- Jun 22, 2022
- 4 min
Operator Methods and Custom Operators
Operator Methods Operator methods enables us to add implementations of standard Swift operators to our custom types. This is a very...
64 views


Jon Hoffman
- Jun 22, 2022
- 4 min
Introduction to Swift<T> Generics
Over the years, I have always been surprised with the number of developers that I have meet that do not use or understand generics. In...
123 views