init(LocalizedStringKey , role: ButtonRole ?, action: () -> Void)
Creates a button with a specified role that generates its label from a localized string key.
Available when
Label
is Text
.
Label
がText
である時に利用可能です。
init<S>(S, role: ButtonRole ?, action: () -> Void)
Creates a button with a specified role that generates its label from a string.
Available when
Label
is Text
.
Label
がText
である時に利用可能です。
struct ButtonRole
A value that describes the purpose of a button.