---
title: isAtomic
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/ckmodifyrecordsoperation/isatomic
---

# isAtomic

A Boolean value that indicates whether the entire operation fails when CloudKit can’t update one or more records in a record zone.

## Declaration

```swift
var isAtomic: Bool { get set }
```

## Discussion

Discussion Modifying records atomically prevents you from updating your data in a way that leaves it in an inconsistent state. You use atomic updates when you want to write multiple records to the same record zone. If there’s a failure to modify any of the records in a zone, CloudKit doesn’t change the other records in that same zone. The record zone must have the atomic capability for this behavior to apply. If a record zone doesn’t support the atomic capability, setting this property has no effect. The default value of this property is true, which causes all modifications within a single record zone to occur atomically. If your operation contains records in multiple record zones, a failure in one zone doesn’t prevent modifications to records in a different zone. Changing the value of this property to false causes CloudKit to modify records individually, regardless of whether the record zone supports atomic modifications.

## See Also

### Configuring the Modify Record Operation

- [recordsToSave](cloudkit/ckmodifyrecordsoperation/recordstosave.md)
- [recordIDsToDelete](cloudkit/ckmodifyrecordsoperation/recordidstodelete.md)
- [clientChangeTokenData](cloudkit/ckmodifyrecordsoperation/clientchangetokendata.md)
- [savePolicy](cloudkit/ckmodifyrecordsoperation/savepolicy.md)
- [CKModifyRecordsOperation.RecordSavePolicy](cloudkit/ckmodifyrecordsoperation/recordsavepolicy.md)
