Hey, Apple team, any updates on that topic?
Why does NSBatchInsertRequest do not provide any API for getting an internal context that is used for NSManagedObject creation:
https://developer.apple.com/documentation/coredata/nsbatchinsertrequest/3618791-init
It would be nice to have an access to NSManagedObject context here:
managedObjectHandler handler: @escaping (NSManagedObject, NSManagedObjectContext) -> Bool
So we could make add a relationship models just in place, without struggling with a workaround solutions.
Post
Replies
Boosts
Views
Activity
Please - reffer for the following documentation page:
https://developer.apple.com/documentation/uikit/uiviewcontroller/restoring_your_app_s_state
The sample supports two state preservation approaches. In iOS 13 and later, apps save the state for each window scene using NSUserActivity objects. In iOS 12 and earlier, apps preserve the state of their user interfaces by saving and restoring the configuration of view controllers.
It's also contains demo project - so you can use it for implementation details.