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

# configurationDisplayName(_:)

Sets the name shown for a widget when a user adds or edits it using the contents of a text view.

## Declaration

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

```

## Parameters

- `displayName`: A text view containing a localized string to display.

## Return Value

Return Value A widget configuration with a descriptive name for the widget.
