persistentModelID
Swift declarationvar persistentModelID: PersistentIdentifier { get }protocol · iOS 17.0+ · SDK 27.1
protocol PersistentModel : AnyObject, Observable, Hashable, Identifiable, SendableMetatypeAn interface that enables SwiftData to manage a Swift class as a stored model.
var persistentModelID: PersistentIdentifier { get }var hasChanges: Bool { get }var modelContext: ModelContext? { get }var id: PersistentIdentifier { get }var isDeleted: Bool { get }13 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
PersistentModel.createBackingData()
This protocol needs associated types that cannot yet cross the bridge.
PersistentModel.getValue(forKey:)
This protocol needs associated types that cannot yet cross the bridge.
PersistentModel.getValue(forKey:)
This protocol needs associated types that cannot yet cross the bridge.
PersistentModel.getValue(forKey:)
This protocol needs associated types that cannot yet cross the bridge.
PersistentModel.getValue(forKey:)
This protocol needs associated types that cannot yet cross the bridge.
PersistentModel.getValue(forKey:)
This protocol needs associated types that cannot yet cross the bridge.
PersistentModel.getTransformableValue(forKey:)
This protocol needs associated types that cannot yet cross the bridge.
PersistentModel.setValue(forKey:to:)
This protocol needs associated types that cannot yet cross the bridge.
PersistentModel.setValue(forKey:to:)
This protocol needs associated types that cannot yet cross the bridge.
PersistentModel.setValue(forKey:to:)
This protocol needs associated types that cannot yet cross the bridge.
PersistentModel.setValue(forKey:to:)
This protocol needs associated types that cannot yet cross the bridge.
PersistentModel.setValue(forKey:to:)
This protocol needs associated types that cannot yet cross the bridge.
PersistentModel.setTransformableValue(forKey:to:)
This protocol needs associated types that cannot yet cross the bridge.