Instance Method インスタンスメソッド

configurationDisplayName(_:)

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

Declaration 宣言

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

Return Value 戻り値

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

Parameters パラメータ

displayName

The key for the localized name to display.