Hi ..
Im working on CloudKit, I made new iOS project and added a CloudKit Capability, as well as a container, imported it in a View Controller and tried to save data as code below, but nothing is happeing and no data is being saved when I go to the dashboard ?
@IBAction func addReport(_ sender: Any) {
let bugReport = CKRecord(recordType: "NewReport")
bugReport ["BugName"] = "Bug 1"
bugReport ["BugDisc"] = "Its a main bug"
let container = CKContainer.default()
let database = container.publicCloudDatabase
database.save(bugReport) {(savedRecords, error) in
}
}