Type Method

defaultDirectoryURL()

Creates the default directory for the persistent stores on the current platform.

Declaration

class func defaultDirectoryURL() -> URL

Return Value

An NSURL that references the directory in which the persistent store(s) will be located or are currently located.

Discussion

This method returns a platform-dependent NSURL at which the persistent store(s) will be located or are currently located. This method can be overridden in a subclass of NSPersistentContainer.