<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WidgetKit",
  "identifier" : "/documentation/WidgetKit/IntentRecommendation/init(intent:description:)-6v7dj",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "WidgetKit"
    ],
    "preciseIdentifier" : "s:9WidgetKit20IntentRecommendationV6intent11descriptionACyxGx_qd__tcSyRd__lufc"
  },
  "title" : "init(intent:description:)"
}
-->

# init(intent:description:)

Creates a recommended configuration for a widget on platforms that
don’t offer a dedicated user interface to customize widgets.

```
init<S>(intent: T, description: S) where S : StringProtocol
```

## Parameters

`intent`

The intent that represents the recommended
configuration.

`description`

A description that helps the user
understand the value of the preconfigured configuration option.
For example, if the configuration represents a location in a weather
app, the description may be the name of one of the user’s favorite
cities, such as `Cupertino`.

## Discussion> Note: On platforms that offer a dedicated user interface for configuring
> widgets — for example, iOS or macOS — `IntentRecommendation` is
> inactive.

---

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)