One Logo Pool Ball
SwiftData · IOS API REFERENCE

DefaultSnapshot

struct · iOS 18.0+ · SDK 27.1

struct DefaultSnapshot

Members (3)

get · iOS 18.0+

persistentIdentifier

TypeScript
get persistentIdentifier(): PersistentIdentifier
Swift declaration
let persistentIdentifier: PersistentIdentifier
method · iOS 18.0+

copy

TypeScript
copy(persistentIdentifier: PersistentIdentifier, remappedIdentifiers?: (NativeMap<PersistentIdentifier, PersistentIdentifier>) | null): DefaultSnapshot
Swift declaration
func copy(persistentIdentifier: PersistentIdentifier, remappedIdentifiers: [PersistentIdentifier : PersistentIdentifier]? = [:]) -> DefaultSnapshot
init · iOS 18.0+

init

TypeScript
static init(backingData: SDKHandle, relatedBackingDatas: NativeMap<PersistentIdentifier, SDKHandle>): { $ret: DefaultSnapshot; $out: { "relatedBackingDatas": NativeMap<PersistentIdentifier, SDKHandle> } }
Swift declaration
init(from backingData: any BackingData, relatedBackingDatas: inout [PersistentIdentifier : any BackingData])

Omit the output parameters from the call. The result contains $ret and $out, with relatedBackingDatas inside $out.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftData types →