<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKSyncEngine-5sie5/SendChangesContext",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "s:8CloudKit12CKSyncEngineC18SendChangesContextV"
  },
  "title" : "CKSyncEngine.SendChangesContext"
}
-->

# CKSyncEngine.SendChangesContext

The context of an attempt to send changes to the server.

```
struct SendChangesContext
```

## Overview

A sync engine has two ways to send changes to iCloud — periodically, in cooperation with the system scheduler, and manually, whenever your app invokes the [`sendChanges(_:)`](/documentation/CloudKit/CKSyncEngine-5sie5/sendChanges(_:)) method.
This type provides information about a single attempt to send changes that includes both the reason for the attempt and any additional options in use by the attempt.

## Topics

### Accessing specific attributes

[`let reason: CKSyncEngine.SyncReason`](/documentation/CloudKit/CKSyncEngine-5sie5/SendChangesContext/reason)

The reason for the send operation.

[`enum SyncReason`](/documentation/CloudKit/CKSyncEngine-5sie5/SyncReason)

Describes the reason for a sync operation.

[`enum CKSyncEngineSyncReason`](/documentation/CloudKit/CKSyncEngineSyncReason)

Describes the reason for a sync operation.

[`let options: CKSyncEngine.SendChangesOptions`](/documentation/CloudKit/CKSyncEngine-5sie5/SendChangesContext/options)

The options being used for this attempt to send changes.

[`struct SendChangesOptions`](/documentation/CloudKit/CKSyncEngine-5sie5/SendChangesOptions)

A set of options to use when sending changes to the server.

### Debugging the context

[`var description: String`](/documentation/CloudKit/CKSyncEngine-5sie5/SendChangesContext/description)

The textual description of the context that’s suitable for logging.

### Default Implementations

[CustomStringConvertible Implementations](/documentation/CloudKit/CKSyncEngine-5sie5/SendChangesContext/CustomStringConvertible-Implementations)

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Escapable`](/documentation/Swift/Escapable)

[`Copyable`](/documentation/Swift/Copyable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)