What is a bridging conversion in Swift? My other post asking this question didn't get an explanation, though I did get a solution to the problem.
import UIKit
import CloudKit
let int: UInt8 = 1
let data: Data? = Data([int])
let record: CKRecord = CKRecord(recordType: "record_type")
record.setObject(data as? CKRecordValue, forKey: "field") // warning:
I get a warning in the following code where I marked with a comment saying "// warning":
The warning says:
Conditional downcast from 'Data?' to 'CKRecordValue' (aka '__CKRecordObjCValue') is a bridging conversion; did you mean to use 'as'?