defaultDirectoryURL
TypeScriptstatic defaultDirectoryURL(): stringSwift declarationclass func defaultDirectoryURL() -> URLclass · iOS 10.0+ · SDK 27.1
class NSPersistentContainerstatic defaultDirectoryURL(): stringSwift declarationclass func defaultDirectoryURL() -> URLstatic initName(name: string): NSPersistentContainerSwift declarationconvenience init(name: String)static initNameManagedObjectModel(name: string, model: NSManagedObjectModel): NSPersistentContainerSwift declarationinit(name: String, managedObjectModel model: NSManagedObjectModel)loadPersistentStores(block: ((arg0: NSPersistentStoreDescription, arg1: (NativeError) | null) => void)): voidSwift declarationfunc loadPersistentStores(completionHandler block: @escaping (NSPersistentStoreDescription, (any Error)?) -> Void)newBackgroundContext(): NSManagedObjectContextSwift declarationfunc newBackgroundContext() -> NSManagedObjectContextperformBackgroundTask(block: ((arg0: NSManagedObjectContext) => void)): voidSwift declarationfunc performBackgroundTask(_ block: @escaping @Sendable (NSManagedObjectContext) -> Void)get managedObjectModel(): NSManagedObjectModelSwift declarationvar managedObjectModel: NSManagedObjectModel { get }get name(): stringSwift declarationvar name: String { get }get persistentStoreCoordinator(): NSPersistentStoreCoordinatorSwift declarationvar persistentStoreCoordinator: NSPersistentStoreCoordinator { get }get persistentStoreDescriptions(): Array<NSPersistentStoreDescription>Swift declarationvar persistentStoreDescriptions: [NSPersistentStoreDescription] { get set }set persistentStoreDescriptions(value: Array<NSPersistentStoreDescription>)Swift declarationvar persistentStoreDescriptions: [NSPersistentStoreDescription] { get set }get viewContext(): NSManagedObjectContextSwift declarationvar viewContext: NSManagedObjectContext { get }static get defaultDirectoryURL18515(): stringSwift declarationclass var defaultDirectoryURL: URL { get }2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
NSPersistentContainer.performBackgroundTask(_:)
synchronous callback requires a nonescaping JS-thread call
NSPersistentContainer.init()
inherited init: cannot prove legal (class declares 2 custom initializers)