Initializes a persistent container with the given name and model.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
- watchOS 3.0+
- Core Data
The name used by the persistent container.
The managed object model to be used by the persistent container.
A persistent container initialized with the given name and model.
By default, the provided name value of the container is used as the name of the persisent store associated with the container. Passing in the
NSManaged object overrides the lookup of the model by the provided name value.