A control that toggles between on and off states.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
The appearance and interaction of
Toggle is determined at runtime and can be customized.
Toggle uses the
Toggle provided by its environment to define its appearance and interaction. Each platform provides a default style that reflects the platform style, but providing a new style will redefine all
Toggle instances within that environment.