I figured you can create new entities (in
let person = Person(context: persistentContainer.viewContext)
person.name = "Some Name"
According to your comments on your question, you ARE calling
Go into your
AppDelegate and check out
saveContext() is called there.
In short, if you want to persist the data then yes, you need to call