CustomSwitch SwiftUI - admiral-team/admiralui-ios GitHub Wiki
Struct
A control that offers a binary choice, such as on/off.
Declaration
public struct CustomSwitch: View
Overview
Used to toggle the on/off state of a single setting. When a person manipulates the switch control (“flips” it), it triggers the valueChanged event.
Live example
CustomSwitch
Configure a @State private var isOn: Bool = true
CustomSwitch(isOn: $isCustomSwitchOn)
Contribution
You can help us to find bugs or ask us to add features.
- To start
issue
please use ready-made templates. - To make changes to the repository, you need to create a
fork
of the project, make changes to the code and create apull request
in our project. You can read more about this in the Github documentation.