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 & Data
Tags: