Post

Replies

Boosts

Views

Activity

Reply to ModelActors not persisting relationships in iOS 18 beta
I am having a similar issue. One thing with your sample code there. If you create the model, insert it into the context, then add the relationships, the relationship will stay. so let newEmployee = Employee() modelContext.insert(newEmployee) newEmloyee.company = companies.first try! modelContext.save() But even with this change the view is not updating
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Jul ’24