How to update data in TableView without the delay using CloudKit when Creating new Records
There are 2 View Controllers in my App. The first "MainViewController" displays a tableView with CKRecords fields fetched from the private CloudKit database. Inside the viewWillAppear method of this VC I fetch records from CloudKit and reload data of a tableview to show the latest fetched results that have been previously saved in the CloudKit by the user. The second view controller "CreateRecordViewController" is made for creating CKRecords and saving them to the private database of the CloudKit. So i create records in the CreateRecordViewController and show them in the MainViewController.