---
title: "configurationDisplayName(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/widgetconfiguration/configurationdisplayname(_:)-4v9q"
---

# configurationDisplayName(_:)

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

## Declaration

```swift
@MainActor @preconcurrency func configurationDisplayName(_ displayNameKey: LocalizedStringKey) -> some WidgetConfiguration

```

## Parameters

- `displayNameKey`: The key for the localized name to display.

## Return Value

Return Value A widget configuration that includes a descriptive name for the widget.
