fetchAllRecordZones(completionHandler:)
Fetches all record zones from the current database.
Declaration
func fetchAllRecordZones(completionHandler: @escaping @Sendable ([CKRecordZone]?, (any Error)?) -> Void)func allRecordZones() async throws -> [CKRecordZone]Parameters
- completionHandler:
The closure to execute with the fetch results.
Discussion
The completion handler takes the following parameters:
An array of fetched record zones, or
nilif there’s an error. When present, the array contains at least one record zone, the default zone.An error if a problem occurs, or
nilif CloudKit successfully fetches all record zones.