MangedObjectContext data changes not showing in Cloudkit but Record Type was added successfully

I have a Post Model type that i made in .xcdatamodel, then switched Codegen to Manual/None and got two files Post+CoreDataClass & Post+CoreDataProperties

In my AddPostView I am saving changes like below:


Code Block let post = Post(context: self.managedObjectContext)
            post.title = self.viewModel.postTitle
            post.comment = self.viewModel.postComment
            post.serialNumber = self.viewModel.postSerialNumber
            do {
              if self.managedObjectContext.hasChanges {
                try self.managedObjectContext.save()
              }
              self.isShown.toggle()
            } catch {
              self.showErrorAlert.toggle()
              print(error.localizedDescription)
            }


When this executes i see the record type in CloudKit Dashboard Schema, Record Type but when i go to the Data section I dont see any data added.

Anyone can help why this may. be happening?

MangedObjectContext data changes not showing in Cloudkit but Record Type was added successfully
 
 
Q