STRUCT
CoreDataModel
Contents
- Properties
pathcurrentVersion
- Methods
coreDataModel(_:currentVersion:)
swift
public struct CoreDataModel: Codable, Equatable, SendableA Core Data model.
Properties
path
swift
public var path: PathRelative path to the model.
currentVersion
swift
public var currentVersion: String?Optional Current version (with or without extension)
Methods
coreDataModel(_:currentVersion:)
swift
public static func coreDataModel(
_ path: Path,
currentVersion: String? = nil
) -> SelfCreates a Core Data model from a path.
- Parameters:
- 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.
Parameters
| 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. |
