Initializer

init()

Creates a checkbox toggle style.

Declaration 宣言

init()

Discussion 議論

Don’t call this initializer directly. Instead, use the checkbox static variable to create this style:


Toggle("Close windows when quitting an app", isOn: $doesClose)
    .toggleStyle(.checkbox)