One Logo Pool Ball
SwiftData · IOS API REFERENCE

DataStoreSnapshotCodingKey

enum · iOS 18.0+ · SDK 27.1

enum DataStoreSnapshotCodingKey

Members (4)

init · iOS 18.0+

init

TypeScript
static initStringValue(stringValue: string): (DataStoreSnapshotCodingKey) | null
Swift declaration
init?(stringValue: String)

Creates a new instance from the given string. If the string passed as `stringValue` does not correspond to any instance of this type, the result is `nil`. - parameter stringValue: The string value of the desired key.

get · iOS 18.0+

stringValue

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

The string to use in a named collection (e.g. a string-keyed dictionary).

init · iOS 18.0+

init

TypeScript
static initIntValue(intValue: number): (DataStoreSnapshotCodingKey) | null
Swift declaration
init?(intValue: Int)

Creates a new instance from the specified integer. If the value passed as `intValue` does not correspond to any instance of this type, the result is `nil`. - parameter intValue: The integer value of the desired key.

get · iOS 18.0+

intValue

TypeScript
get intValue(): (number) | null
Swift declaration
var intValue: Int? { get }

The value to use in an integer-indexed collection (e.g. an int-keyed dictionary).

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftData types →