<!--
{
  "availability" : [
    "iOS: 27.3.0 -",
    "iPadOS: 27.3.0 -",
    "macCatalyst: 27.3.0 -",
    "macOS: 27.3.0 -",
    "tvOS: 27.3.0 -",
    "visionOS: 27.3.0 -",
    "watchOS: 27.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntentsTesting",
  "identifier" : "/documentation/AppIntentsTesting/AppIntentExpectationProviding/isSatisfied(by:result:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "App Intents Testing",
      "AppIntentsTesting"
    ],
    "preciseIdentifier" : "s:17AppIntentsTesting0A26IntentExpectationProvidingPAAE11isSatisfied2by6resultSbAA03AnyaD0V_AA08ResolvedD6ResultVSgtYaKF"
  },
  "title" : "isSatisfied(by:result:)"
}
-->

# isSatisfied(by:result:)

Returns a Boolean value that indicates whether an intent and its
optional result meet the requirements of the expectation.

```
func isSatisfied(by intent: AnyAppIntent, result: ResolvedIntentResult? = nil) async throws -> Bool
```

## Parameters

`intent`

The intent to check.

`result`

The result of performing the intent. If you omit this
argument, the method treats the intent’s result as absent.

## Return Value

`true` if the intent and its result satisfy the expectation;
otherwise, `false`.

## Discussion

Use this method to check an intent, and the result you get from
performing it, against the expectation. Checking an expectation doesn’t
perform the intent. The method checks each parameter independently; a
parameter that the method can’t evaluate, such as a value of the wrong
type, isn’t satisfied and doesn’t stop the method from checking the
others.

---

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)