Swift Singleton pattern
class Singleton: NSObject { public static let sharedInstance = Singleton() private override init() { super.init() // Add initialization... } }
class Singleton: NSObject { public static let sharedInstance = Singleton() private override init() { super.init() // Add initialization... } }