<!--
{
  "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/AppIntentRecommendation/init(intent:description:)-3j1cv",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "WidgetKit"
    ],
    "preciseIdentifier" : "s:9WidgetKit23AppIntentRecommendationV6intent11descriptionACyxGx_10Foundation23LocalizedStringResourceVtcfc"
  },
  "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 with a
localized description.

```
init(intent: Intent, description: LocalizedStringResource)
```

## Parameters

`intent`

The intent that represents the recommended
configuration.

`description`

A localized string in your bundle
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 — `AppIntentRecommendation` 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)