SecondaryButton - admiral-team/admiralui-ios GitHub Wiki
Class
A secondary control that executes your custom code in response to user additional interactions.
Declaration
open class SecondaryButton: CustomButton, AnyAppThemable, AccessibilitySupport
Overview
Secondary Button is additional type of button. It serves for presentation additional actions. The button has a border around it. It can be used as a stand-alone button or paired with a transparent button.
Configure a Secondary Button
Configuration a Secondary button the similar UIButton.
let button = SecondaryButton()
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 = SecondaryButton()
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.