Perhaps if you are using core data, you are forgetting to call the save() function on the managedObjectContext variable?
try? moc.save()
Topic:
Programming Languages
SubTopic:
Swift
Tags: