---
title: "description(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/widgetconfiguration/description(_:)-4q9pa"
---

# description(_:)

Sets the localized description shown for a widget when a user adds or edits the widget.

## Declaration

```swift
@MainActor @preconcurrency func description(_ descriptionKey: LocalizedStringKey) -> some WidgetConfiguration

```

## Parameters

- `descriptionKey`: The key for the localized description to display.

## Return Value

Return Value A widget configuration with a description of the widget.
