Contents

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 : PersistentModel

See Also

Model definition