The Most Misused Design Pattern in Swift @seanallen
The Most Misused Design Pattern in Swift  @seanallen
Uploaded March 2023 | Updated September 2026, 1 week ago
Go to squarespace.com/seanallen to save 10% off your first purchase of a website or domain using code SEANALLEN.

The Singleton design pattern in iOS development has a bad reputation. Many developers say to never use a Singleton, but I don't agree. A Singleton is a tool that can be used correctly or poorly. In this video you will learn what a Singleton is, the pros and cons of using them and how to create a Singleton.

My iOS Dev Courses:
seanallen.teachable.com/?video=3OMz0LgapFM

iOS Developer Interview Questions Playlist:
youtube.com/playlist?list=PL8seg1JPkqgF5wazzCKSq3EEfqt3t8mvA

Twitter:
Sean Allen - twitter.com/seanallen_dev

Hired.com:
hired.com/x/1n01g

Book and learning recommendations that help out the channel if you decide to purchase (Affiliate Links):

Paul Hudson's Hacking With Swift:
gumroad.com/a/762098803

Donny Wals - Combine:
gumroad.com/a/909014131

Mark Moeyken’s SwiftUI Books:
bigmountainstudio.com/swiftui-views-book/fzc51

Objc.io Books (Thinking in SwiftUI & Advanced Swift):
gumroad.com/a/656585843

#swift #softwaredeveloper #iosdeveloper

Timestamps:
0:00 - Is it really that bad?
0:17 - Example w/ UserDefaults
1:31 - Pros
2:16 - Cons
4:21 - How to create a Singleton
5:33 - It's a Hammer
The Most Misused Design Pattern in Swift31 Xcode Tips & Tricks - 2023Xcode Tip - 3D View Debugging #iosdeveloper #swift #xcodeBleeding Edge AI Work, Whats New in Swift, Concurrency, Apple AdsXcode Tip - Single App Icon #iosdeveloper #swift #xcodeSwiftUI Bar Chart with Customizations | Swift ChartsNew Way to Format Dates in Swift (5.5)Swift in 2023, Better Pull Requests, Paywalls, SwiftUI Animations & MoreSwift: Dead Simple Formatting (Dates, Numbers, Currency, Measurement, Time)SwiftUI - Support Prior iOS Versions - Backward Compatibility - #availableXcode Tip - Vertical Code Selection #iosdeveloper #swift #xcodeMy New Way To Create App Store Screenshots
Sean Allen |

The Most Misused Design Pattern in Swift

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER