rootRecord
The share’s root record.
Declaration
@NSCopying var rootRecord: CKRecord? { get }Discussion
This property contains the root record of the shared record hierarchy if you set the shouldFetchRootRecord property of the operation that fetches the metadata to true. You can specify which fields CloudKit returns by setting the same operation’s rootRecordDesiredKeys property.
The operation ignores the shouldFetchRootRecord and rootRecordDesiredKeys properties when fetching a shared record zone’s metadata because, unlike a shared record hierarchy, a record zone doesn’t have a nominated root record.