## Toggle / switch flip

- Use case: A settings switch flips on or off with a mechanical click.
- Feel: A crisp, rigid tick — like a physical switch. Slightly stronger on "on".
- APIs: .sensoryFeedback(.impact(flexibility: .rigid)), UIImpactFeedbackGenerator(style: .rigid)
- Minimum OS: iOS 17+ / iOS 13+

### SwiftUI (iOS 17+)

```swift
import SwiftUI

struct HapticToggle: View {
    @State private var isOn = false

    var body: some View {
        Toggle("Notifications", isOn: $isOn)
            .sensoryFeedback(trigger: isOn) { _, on in
                .impact(flexibility: .rigid, intensity: on ? 0.7 : 0.5)
            }
    }
}
```

### UIKit

```swift
let toggle = UISwitch()
let haptic = UIImpactFeedbackGenerator(style: .rigid)

toggle.addAction(UIAction { action in
    guard let sender = action.sender as? UISwitch else { return }
    haptic.impactOccurred(intensity: sender.isOn ? 0.7 : 0.5)
}, for: .valueChanged)
```

### Notes
- The system UISwitch already plays its own haptic on real devices — add a custom one only to custom-drawn toggles.
