Avoiding singletons in Swift

Avoiding singletons in Swift

"I know singletons are bad, but...", is something that developers often say when discussing code. There seems to almost be a consensus in the community that singletons are "bad", but at the same time both Apple and third party Swift developers keep using them both internally within apps and in shared frameworks.

[…]

Essential Developer: Until this Sunday, December 12th, you can join a free crash course to learn advanced techniques for testing both new and legacy Swift code — it’s a fast track to becoming a complete senior iOS developer! Click to learn more.

[…]

Support Swift by Sundell by checking out this sponsor:

Essential Developer: Until this Sunday, December 12th, you can join a free crash course to learn advanced techniques for testing both new and legacy Swift code — it’s a fast track to becoming a complete senior iOS developer! Click to learn more.

[…]