<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "macOS: 14.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WidgetKit",
  "identifier" : "/documentation/WidgetKit/WidgetInfo/widgetConfigurationIntent(of:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WidgetKit"
    ],
    "preciseIdentifier" : "s:9WidgetKit0A4InfoV25widgetConfigurationIntent2ofxSgxm_t10AppIntents0aeF0RzlF"
  },
  "title" : "widgetConfigurationIntent(of:)"
}
-->

# widgetConfigurationIntent(of:)

Gets the associated App Intent.

```
func widgetConfigurationIntent<Intent>(of intentType: Intent.Type = Intent.self) -> Intent? where Intent : WidgetConfigurationIntent
```

## Parameters

`intentType`

The expected type for the App Intent.

## Return Value

An App Intent that contains the user-edited values or nil
if there is no associated App Intent or the type does not match `intentType`.

---

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)