Usage
SwiftUI
M3ESwitch(isOn: $wifi, icons: true)API
| Property | SwiftUI | Description |
|---|---|---|
| checked | isOn: Binding<Bool> | State. |
| icons | icons, checkedIcon, uncheckedIcon | Icons inside the thumb. |
Guidelines
- Switches apply immediately; use a checkbox when the user must confirm with a button.