Today we go over what the singleton design pattern is, some of the concerns and drawbacks of using it, and what the difference is between static/class members and singleton members, using Swift 4. First we go over why some developers consider singletons an anti-pattern and generally something to be avoided. Next, we dive into the composition of a singleton class and the implementation of its properties and methods. Lastly, we cover the singletons vs static instances as well as the purpose of hav
Video youtube