Skip to content

번역

이 페이지를 번역하거나 기존 번역을 개선할 수 있습니다.

기여

STRUCT

CoreDataModel

Contents

swift
public struct CoreDataModel: Codable, Equatable, Sendable

A Core Data model.

Properties

path

swift
public var path: Path

Relative 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
) -> Self

Creates 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

NameDescription
pathrelative path to the Core Data model.
currentVersionoptional current version name (with or without the extension) By providing nil, it will try to read it from the .xccurrentversion file.

Released under the MIT License.