object(forKey:)
Returns the object that the record stores for the specified key.
Declaration
func object(forKey key: String) -> (any __CKRecordObjCValue)?Parameters
- key:
The string that identifies a field in the record. A key must consist of one or more alphanumeric characters and must start with a letter. CloudKit permits the use of underscores, but not spaces.
Return Value
The object for the specified key, or nil if no such key exists in the record.