Thursday, July 7, 2016

Singleton Pattern

 
class MySingleton {
    static let sharedInstance = MySingleton()
    private init() {} //This prevents others from using the default '()' initializer for this class.
}
 

Pattern inspired from this great post by Krakendev.
(Xcode 7.3, Swift 2.2)

SwiftUI Search & Filter with Combine - Part 3 (iOS, Xcode 13, SwiftUI, 2...

In part 3 of the Searchable video series, I show you how to use Combine in #SwiftUI for the search and filter logic connected to the searcha...