<!--
{
  "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/FetchChangesContext",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "s:8CloudKit12CKSyncEngineC19FetchChangesContextV"
  },
  "title" : "CKSyncEngine.FetchChangesContext"
}
-->

# CKSyncEngine.FetchChangesContext

The context of an attempt to fetch changes from the server.

```
struct FetchChangesContext
```

## Overview

The sync engine might attempt to fetch changes from the server for many reasons.
For example, if you call [`fetchChanges(_:)`](/documentation/CloudKit/CKSyncEngine-5sie5/fetchChanges(_:)), it tries to fetch changes immediately.
Or if it receives a push notification, it schedules an automatic sync and fetch changes when the scheduler task runs.

## Topics

### Instance Properties

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

The options being used for this attempt to fetch changes.

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

The reason why the sync engine is attempting to fetch changes.

## Relationships

### Conforms To

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

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

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

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

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

---

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)