toggleStyle
Set the native SwiftUI style for toggles.
toggleStyle(value) sets the SwiftUI style for the current Toggle or descendant Toggles.
Supported values: automatic, switch, and button.
import { Modifier, Toggle } from "onescript/views"
<Toggle
isOn={bold}
onChange={setBold}
modifier={Modifier.toggleStyle("button")}
>
Bold
</Toggle>How is this guide?
Last updated on