Index(_:)
Specifies the key-paths that SwiftData uses to create one or more binary indices for the associated model.
Declaration
@freestanding(declaration) macro Index<T>(_ indices: [PartialKeyPath<T>]...) where T : PersistentModelSpecifies the key-paths that SwiftData uses to create one or more binary indices for the associated model.
@freestanding(declaration) macro Index<T>(_ indices: [PartialKeyPath<T>]...) where T : PersistentModel