Discussion 議論
Don’t call this initializer directly. Instead, use the button
static variable to create this style:
Toggle(isOn: $isFlagged) {
Label("Flag", systemImage: "flag.fill")
}
.toggleStyle(.button)
Availability 有効性
Technology
init()
Don’t call this initializer directly. Instead, use the button
static variable to create this style:
Toggle(isOn: $isFlagged) {
Label("Flag", systemImage: "flag.fill")
}
.toggleStyle(.button)