Contents

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.

Declaration

init(intent: T, description: LocalizedStringKey)

Parameters

  • intent:

    The intent that represents the recommended configuration.

  • description:

    A key for 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

See Also

Creating a Recommended Widget Configuration