Post

Replies

Boosts

Views

Activity

Comment on iOS 18 SwiftData ModelContext reset
How would we handle errors -- say, if the initializer fails due to a migration error?
Replies
Boosts
Views
Activity
Nov ’24
Comment on iOS 18 SwiftData ModelContext reset
After looking at Xcode for more than 5 seconds, I realized .create() is a custom static function I can make, and handle the errors in there, then put the call in a @State as mentioned above.
Replies
Boosts
Views
Activity
Nov ’24