CustomSwitch - admiral-team/admiralui-ios GitHub Wiki
Class
A control that offers a binary choice, such as on/off.
Declaration
open class CustomSwitch: UISwitch, AnyAppThemable
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 Custom Switch
Configuration a Custom switch the similar UISwitch.
let switchControl = CustomSwitch()
switchControl.isOn = true
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.