A Code Sample to use Core Data Stack as a Singleton
I used to create an instance of my Core Data Stack in AppDelegate file and accessed it from other View Controllers. But I have to modify it because iOS 11 forces to access AppDelegate file in the main thread. So…