---
title: CKOperationGroup
framework: cloudkit
role: symbol
role_heading: Class
path: cloudkit/ckoperationgroup
---

# CKOperationGroup

An explicit association between two or more operations.

## Declaration

```swift
class CKOperationGroup
```

## Overview

Overview In certain situations, you might want to perform several CloudKit operations together. Grouping operations in CloudKit doesn’t ensure atomicity. For example, when building a Calendar app, you group the following actions: Fetch records from CloudKit, which consists of numerous queries that fetch both new records and records with changes. Perform incremental fetches of records in response to a push notification. Update several records when the user saves a calendar event. Associate operation groups with operations by setting their group property. Create a new operation group for each distinct user interaction.

## Topics

### Creating an Operation Group

- [init()](cloudkit/ckoperationgroup/init().md)
- [init(coder:)](cloudkit/ckoperationgroup/init(coder:).md)

### Configuring an Operation Group

- [defaultConfiguration](cloudkit/ckoperationgroup/defaultconfiguration.md)
- [expectedReceiveSize](cloudkit/ckoperationgroup/expectedreceivesize.md)
- [expectedSendSize](cloudkit/ckoperationgroup/expectedsendsize.md)
- [name](cloudkit/ckoperationgroup/name.md)
- [operationGroupID](cloudkit/ckoperationgroup/operationgroupid.md)
- [quantity](cloudkit/ckoperationgroup/quantity.md)
- [CKOperationGroup.TransferSize](cloudkit/ckoperationgroup/transfersize.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Core objects

- [CKContainer](cloudkit/ckcontainer.md)
- [CKDatabase](cloudkit/ckdatabase.md)
