One Logo Pool Ball
SwiftData · IOS API REFERENCE

Schema.Version

struct · iOS 17.0+ · SDK 27.1

struct Version

Members (5)

get · iOS 17.0+

description

TypeScript
get description(): string
Swift declaration
var description: String { get }

A textual description of the version object.

get · iOS 17.0+

major

TypeScript
get major(): number
Swift declaration
let major: Int

The major version according to the semantic versioning standard.

get · iOS 17.0+

minor

TypeScript
get minor(): number
Swift declaration
let minor: Int

The minor version according to the semantic versioning standard.

get · iOS 17.0+

patch

TypeScript
get patch(): number
Swift declaration
let patch: Int

The patch version according to the semantic versioning standard.

init · iOS 17.0+

init

TypeScript
static init(major: number, minor: number, patch: number): Schema_Version
Swift declaration
init(_ major: Int, _ minor: Int, _ patch: Int)

Initializes a version struct with the provided components of a semantic version. - Parameters: - major: The major version number. - minor: The minor version number. - patch: The patch version number. - Precondition: `major >= 0 && minor >= 0 && patch >= 0`.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftData types →