Contents

subscript(dynamicMember:)

Accesses nested properties of the result’s return value.

Declaration

subscript(dynamicMember keyPath: KeyPath<ResolvedIntentResult.ValueKeyPath, Never>) -> DynamicPropertyPath { get }

Overview

For example:

let result = try await intent.run()

// Accessing properties.
try result.value.customerName == "My Name"

For more information about dynamic-member syntax, see dynamicMemberLookup in The Swift Programming Language.