---
title: "widgetConfigurationIntent(of:)"
framework: widgetkit
role: symbol
role_heading: Instance Method
path: "widgetkit/widgetinfo/widgetconfigurationintent(of:)"
---

# widgetConfigurationIntent(of:)

Gets the associated App Intent.

## Declaration

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

## Parameters

- `intentType`: The expected type for the App Intent.

## Mentioned in

Making a configurable widget

## Return Value

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.
