AdmiralSwiftUI Controls CheckBox - admiral-team/admiralui-ios GitHub Wiki
CheckBox
- A type of button that lets the user choose between two opposite states, actions, or values. A selected checkbox is considered on when it contains a checkmark and off when it's empty.
CheckBox(
isSelected: .constant(true),
text: "Your name of checkbox")
You can create a button with CheckBox
specifying the following parameters in init:
Initializer parameters:
- text - value of String. Your text will be shown to the right of checkbox
- isSelected - Binding<Bool>. Observable property for displaying the selected checkbox
- checkState - CheckControlState. This parameter is responsible for the display style checkbox. Can be in two states: normal, error. Default state is a normal.
To run live demo with CheckBox
open Xcode and run project with Example target. Then in the main page open Page/CheckBox:
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.