<!--
{
  "availability" : [
    "iOS: 9.3.0 - 11.0.0",
    "iPadOS: 9.3.0 - 11.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.12.0 - 10.13.0",
    "tvOS: 9.2.0 - 11.0.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 3.0.0 - 4.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKOperation/isLongLived",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CKOperation(py)longLived"
  },
  "title" : "isLongLived"
}
-->

# isLongLived

A Boolean value that indicates whether the operation is long-lived.

```
var isLongLived: Bool { get set }
```

## Discussion

Set this property to <doc://com.apple.documentation/documentation/Swift/true> to make the operation long-lived. The default value is <doc://com.apple.documentation/documentation/Swift/false>. If you change this property’s value after you execute the operation, the change has no effect.

For more information, see [`Long-Lived Operations`](/documentation/CloudKit/CKOperation#Long-Lived-Operations).

---

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)