Modifiers
toggleStyle
Sets the style for toggles within this view.
toggleStyle(style)
| Parameter | Type | Description |
|---|---|---|
style | 'button' | 'switch' | 'automatic' | The toggle style. |
Sets the style for toggles within this view.
Returns: ModifierConfig
See: Official SwiftUI documentation.
Works with
Sources
The original Expo docs for this page:
- toggleStyle (Modifiers) (
source-of-truth/versions/v57.0.0/sdk/ui/swift-ui/modifiers.md)