Contents

CheckboxToggleStyle

A toggle style that displays a checkbox followed by its label.

Declaration

struct CheckboxToggleStyle

Overview

Use the checkbox static variable to create this style:

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

Topics

Creating the toggle style

Supporting types

See Also

Supporting types