Michael Long
Jan 25, 2023

--

Dependencies have lifecycles. Some are singletons, and some should be unique each and every time they're instantiated.

My biggest issue with the technique wasn't that it made everything a singleton (although it did), but that it also creates every single instance at launch, regardless of whether or not its actually going to be used.

Glad you like the articles.

--

--

Michael Long
Michael Long

Written by Michael Long

I write about Apple, Swift, and SwiftUI in particular, and technology in general. I'm also a Lead iOS Engineer at InRhythm, a modern digital consulting firm.

No responses yet