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

# configurationDisplayName(_:)

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

## Declaration

```swift
@MainActor @preconcurrency func configurationDisplayName(_ displayName: LocalizedStringResource) -> some WidgetConfiguration

```

## Parameters

- `displayName`: Text resource for the localized name to display.

## Return Value

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