PrimaryButton - admiral-team/admiralui-ios GitHub Wiki
Class
A main control that executes your custom code in response to user important interactions.
Declaration
open class PrimaryButton: CustomButton, AnyAppThemable, AccessibilitySupport
Overview
Primary Button is main type button. It serves for presentation important actions. This type of button is brightly then other buttons. It is advisable to use one such button on the screen.
Configure a Primary Button
Configuration a Primary button the similar UIButton.
let button = PrimaryButton()
button.setTitle("Text", for: .normal)
button.setImage(UIImage(), for: .normal)
button.setImage(UIImage(), for: .highlighted)
Display loader in Button
Configure you button to view that shows that a task is in progress.
let button = PrimaryButton()
button.isLoading = 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.