Português (Portuguese)
Português (Portuguese)
Appearance
Português (Portuguese)
Português (Portuguese)
Appearance
STRUCT
CoreDataModel
Contents
path
currentVersion
coreDataModel(_:currentVersion:)
public struct CoreDataModel: Codable, Equatable, Sendable
A Core Data model.
path
public var path: Path
Relative path to the model.
currentVersion
public var currentVersion: String?
Optional Current version (with or without extension)
coreDataModel(_:currentVersion:)
public static func coreDataModel(
_ path: Path,
currentVersion: String? = nil
) -> Self
Creates a Core Data model from a path.
Name | Description |
---|---|
path | relative path to the Core Data model. |
currentVersion | optional current version name (with or without the extension) By providing nil, it will try to read it from the .xccurrentversion file. |