Contents

PersistentModel

An interface that enables SwiftData to manage a Swift class as a stored model.

Declaration

protocol PersistentModel : AnyObject, Observable, Hashable, Identifiable, SendableMetatype

Mentioned in

Topics

Creating a persistent model

Identifying the model instance

Accessing a value by key path

Modifying a value by key path

Accessing supplementary information

Internal

Associated Types

Type Methods

Default Implementations

See Also

Creating a model container