Contents

save(_:)

Saves a specific record.

Declaration

func save(_ record: CKRecord) async throws -> CKRecord

Parameters

  • record:

    The record to save.

Return Value

The saved record (as it appears on the server)

Discussion

The save succeeds only when the specified record is new, or is a more recent version than the one on the server.

For information on a more convenient way to save records, see modifyRecords(saving:deleting:savePolicy:atomically:).