<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntentsTesting",
  "identifier" : "/documentation/AppIntentsTesting/ResolvedIntentResult",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "App Intents Testing"
    ],
    "preciseIdentifier" : "s:17AppIntentsTesting20ResolvedIntentResultV"
  },
  "title" : "ResolvedIntentResult"
}
-->

# ResolvedIntentResult

A type-safe result from performing an app intent.

```
@dynamicMemberLookup struct ResolvedIntentResult
```

## Overview

After performing the app intent with [`run()`](/documentation/AppIntentsTesting/AnyAppIntent/run()), use the
`value` property to inspect the output as shown in the following example:

```swift
let result = try await intent.run()

// Compare the result with an expected value.
XCTAssertEqual(try result.value, "Hello World")

// Access the return value's nested properties.
let name: String = try result.value.customerName

// Pass the return value to another intent for additional verification.
intent2.coffee = try result.value
```

## Topics

### Supporting types

[`struct ValueKeyPath`](/documentation/AppIntentsTesting/ResolvedIntentResult/ValueKeyPath)

A structure that enables key-path syntax for the intent result.

### Subscripts

[`subscript(dynamicMember _: KeyPath<ResolvedIntentResult.ValueKeyPath, Never>) -> DynamicPropertyPath`](/documentation/AppIntentsTesting/ResolvedIntentResult/subscript(dynamicMember:)-69dzb)

Accesses nested properties of the result’s return value.

[`subscript(dynamicMember _: KeyPath<ResolvedIntentResult.ValueKeyPath, Never>) -> (any IntentValueExpressing)?`](/documentation/AppIntentsTesting/ResolvedIntentResult/subscript(dynamicMember:)-7og7e)

Accesses the return value of the result, without casting.

[`subscript<T>(dynamicMember _: KeyPath<ResolvedIntentResult.ValueKeyPath, Never>) -> T`](/documentation/AppIntentsTesting/ResolvedIntentResult/subscript(dynamicMember:)-kbqk)

Returns the intent’s output, converted to the inferred type.

## Relationships

### Conforms To

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

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

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

---

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)