Contents

recordZone(for:)

Fetches a specific record zone.

Declaration

func recordZone(for zoneID: CKRecordZone.ID) async throws -> CKRecordZone

Parameters

  • zoneID:

    The identifier of the record zone to fetch.

Return Value

The fetched record zone.

Discussion

This method throws an error if the request fails, such as when the zone does not exist, the network is unavailable or the device doesn’t have an active iCloud account.

For information on a more convenient way to fetch specific record zones, see recordZones(for:).