Contents

configurationDisplayName(_:)

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

Declaration

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

Parameters

  • displayNameKey:

    The key for the localized name to display.

Return Value

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