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

# configurationDisplayName(_:)

Sets the name shown for a widget when a user adds or edits it using the specified string.

## Declaration

```swift
@MainActor @preconcurrency func configurationDisplayName<S>(_ displayName: S) -> some WidgetConfiguration where S : StringProtocol

```

## Parameters

- `displayName`: A string describing the widget.

## Return Value

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