recipe
switch
Toggle: switch style; inherits tint, environment.
switchtogglesettingbooleanguidance

On iPad
The same installed source at a regular width. It adapts its layout without a separate design.


Install
Nothing to install
Copy the snippet below. The native API is the whole treatment.
Usage
@State private var notifications = true
Toggle("Notifications", isOn: $notifications)
.toggleStyle(.switch)
.registryItem("switch")Why native is enough
.toggleStyle(.switch) on Toggle; no wrapper.
Accessibility contract
- Retains Toggle semantics, announcements; needs visible/accessibility label.
- Inherits tint, enabled, Dynamic Type, direction; no interaction/animation changes.
Details
| Kind | recipe |
| Version | 0.3.1 |
| Platforms | iOS 26.0+ |
| Dependencies | none |
| Source | none (native guidance) |