A control that toggles between on and off states.
- iOS 13.0+Beta
- macOS 10.15+Beta
- Mac Catalyst 13.0+Beta
- tvOS 13.0+Beta
- watchOS 6.0+Beta
- Xcode 11.0+Beta
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.