-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
Hi @AvdLee,
Thank you very much for this helpful repository and the great examples you gave. I was wondering if you could add more example code to demonstrate how you would setup the PersistentContainer + PersistentHistoryTracking for a second target, because if I'm correct, you don't demonstrate that yet.
I would guess you don't want every instance of PersistentContainer.shared to have the .app target such as in the example from your repository below:
func startObservingPersistentHistoryTransactions() -> PersistentHistoryObserver {
let observer = PersistentHistoryObserver(.app, userDefaults: .standard, persistentContainer: self)
viewContext.name = "view_context"
viewContext.transactionAuthor = "main_app_view_context"
observer.startObserving()
return observer
}
Would you compile different extensions per target for example, or build several PersistentContainer instances per target?
Metadata
Metadata
Assignees
Labels
No labels