<!--
{
  "availability" : [
    "iOS: 26.4.0 -",
    "iPadOS: 26.4.0 -",
    "macCatalyst: -",
    "macOS: 26.4.0 -",
    "tvOS: 26.4.0 -",
    "visionOS: 26.4.0 -",
    "watchOS: 26.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/IntentCancellationReason",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents24IntentCancellationReasonV"
  },
  "title" : "IntentCancellationReason"
}
-->

# IntentCancellationReason

Reasons for the cancellation of an app intent’s operation.

```
struct IntentCancellationReason
```

## Overview

This type contains the possible reasons for the cancellation of an app intent. You don’t
create instances of this type yourself. Instead, you receive a value in the cancellation
handler you pass to the [`withIntentCancellationHandler(operation:onCancel:isolation:)`](/documentation/AppIntents/CancellableIntent/withIntentCancellationHandler(operation:onCancel:isolation:))
method when running your app intent’s code. Use the reason to make decisions about how
to respond to the cancellation.

## Topics

### Type Properties

[`static var timeout: IntentCancellationReason`](/documentation/AppIntents/IntentCancellationReason/timeout)

An option that indicates the app intent exceeded the allowed time limit without
reporting progress.

[`static var userCancelled: IntentCancellationReason`](/documentation/AppIntents/IntentCancellationReason/userCancelled)

An option that indicates someone explicitly canceled the intent.

## Relationships

### Conforms To

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

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

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

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

---

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)