AdmiralSwiftUI CheckboxTextbuttonView - admiral-team/admiralui-ios GitHub Wiki

Overview

CheckboxTextbuttonView - The component is used to inform users with the option to select in the checkBox. And also one interaction buttons.

Code

public var body: some View {
 CheckboxTextbuttonView(
     title: "Я согласен с условиями договора и подтверждаю свое согласие на обработку персональных данных",
     isSelected: .constant(true),
     isLoading: .constant(false),
     subtitleButtonTitle: "Открыть список документов",
     subtitleButtonAction: {})
}
}

You can create a CheckboxTextbuttonView by specifying the following parameters in the initializer

- isSelected: Bool - Flag select checkBox.
- title: String - The text that the title label displays.
- subtitleButtonTitle: String? - The text that the subtitle button displays.
- subtitleButtonAction: () -> () - Action subtitleButton.

Live Example

To run live demo with CheckboxTextbuttonView open Xcode and run project with Example target. Then in the main page -> CheckboxTextbuttonView:

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 a pull request in our project. You can read more about this in the Github documentation.