0

I want to be notified when the value changes on cloudkit

this is my code:

let now = Date()
    let timeInterval:TimeInterval = now.timeIntervalSince1970
    let timeStamp = Int(timeInterval)
let publicDB = CKContainer.default().publicCloudDatabase
    let bookID = CKRecord.ID(recordName: "\(timeStamp)")
    let book = CKRecord(recordType: "Book", recordID: bookID)
  • 3
    You need to read the [CloudKit Quick Start Guide](https://developer.apple.com/library/archive/documentation/DataManagement/Conceptual/CloudKitQuickStart/Introduction/Introduction.html). While the code is in Objective-C, the concepts and the APIs are the same in Swift. – rmaddy Jan 06 '19 at 23:22

1 Answers1

-1

I solved the problem by asking regularly.