Skip to content

Class

IDProperty

@propertyWrapper final class IDProperty<Model, Value> where Model : Model, Value : Decodable, Value : Encodable, Value : Sendable

Topics

Initializers

  • init()
    Initializes an ID property with the key .id and type UUID.
  • init(custom:generatedBy:)
    Create an ID property with a specific key, value type, and optional value generator.
  • init(key:)
    Compatibility syntax for initializing an ID property.

Instance Properties

Enumerations

Default Implementations

Relationships

Conforms To