Contents

SwitchToggleStyle

A toggle style that displays a leading label and a trailing switch.

Declaration

struct SwitchToggleStyle

Overview

Use the switch static variable to create this style:

Toggle("Enhance Sound", isOn: $isEnhanced)
    .toggleStyle(.switch)

Topics

Creating the toggle style

Supporting types

Deprecated initializers

See Also

Supporting types