<!--
{
  "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/IntentValuePropertiesCallable/dynamicallyCall(withKeywordArguments:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "App Intents Testing"
    ],
    "preciseIdentifier" : "s:17AppIntentsTesting29IntentValuePropertiesCallableV15dynamicallyCall20withKeywordArgumentsxs03KeyE5PairsVySS0aB11TypeSupport0dE10Expressing_pSgG_tF"
  },
  "title" : "dynamicallyCall(withKeywordArguments:)"
}
-->

# dynamicallyCall(withKeywordArguments:)

Returns an instance of `T` by applying the provided argument values to the properties.

```
func dynamicallyCall(withKeywordArguments args: KeyValuePairs<String, (any IntentValueExpressing)?>) -> T
```

## Discussion

Typically, you use this subscript implicitly via function-call syntax, for example:

```swift
let intent = CreateCoffeeIntent.makeIntent(customerName: "MyName", size: 12.0)
```

This is equivalent to the desugared syntax:

```swift
let intent = CreateCoffeeIntent.makeIntent.dynamicallyCall([
    "customerName": "MyName",
    "size": 12.0
])
```

---

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)