I have been able to get this working by adding a Settings.bundle to my app. However, this does work differently to what's shown in the demo because the interface is constructed automatically from what's stored in the Root.plist. Anything passed within the closure of Settings seems to be ignored.
Post
Replies
Boosts
Views
Activity
@42Wowbaggers
Did you use lazy var persistentContainer? If so, then making it non-lazy should work. While this will indeed silence the error, it'll also mean that a new persistent container is created each time persistentContainer is accessed. lazy is used to make sure the closure is only ever executed once.
IMO the best approach would be to move the initialisation of the container into a private init()—so the store can only be accessed through the shared singleton—and make persistentContainer immutable.
class PersistentStore {
		static let shared = PersistentStore()
		let persistentContainer: NSPersistentContainer
		private init() {
				self.persistentContainer = // ...
		}
}