InfoAgreementView - admiral-team/admiralui-ios GitHub Wiki
Class
Complex user interface element which contains checkbox, title label and transparent button with text.
Declaration
public class InfoAgreementView: UIView, AnyAppThemable
Overview
Info Agreement View is complex ui element. It serves for presentation rule agree.
Configure a Info Agreement View
Configuration checkbox text and text button.
let infoAgreementView = InfoAgreementView()
infoAgreementView.checkboxText = "I agree"
infoAgreementView.checkboxButtonText = "Open documents"
Handle checkbox selection
To access to change of checkbox set delegate.
let infoAgreementView = InfoAgreementView()
infoAgreementView.delegate = self
Interface changing checkbox:
public protocol InfoAgreementViewDelegate: AnyObject {
func checkBoxShouldSelected(_ checkBox: CheckBox) -> Bool
}
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.