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
Configure a CustomSwitch
@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
issueplease use ready-made templates. - To make changes to the repository, you need to create a
forkof the project, make changes to the code and create apull requestin our project. You can read more about this in the Github documentation.