Português (Portuguese)
Appearance
Português (Portuguese)
Appearance
STRUCT
CoreDataModel Contents
pathcurrentVersioncoreDataModel(_:currentVersion:)public struct CoreDataModel: Codable, Equatable, SendableA Core Data model.
path public var path: PathRelative 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
) -> SelfCreates 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. |