Post

Replies

Boosts

Views

Activity

Reply to Swift compiler crashes with simple SwiftData model
Can you try without the Identifiable protocol? I believe this is already applied via the @Model macro (PersistentModel -> Identifiable) so maybe that causes the problem (it shouldn't but you never know in Beta)
Replies
Boosts
Views
Activity
Aug ’23
Reply to Can't set default values for @Model vars
I believe they want us to set default values inside the initializer of the model and because @Model requires an initializer be provided for 'MyModel' I think it is fine
Replies
Boosts
Views
Activity
Aug ’23