GhostButton - admiral-team/admiralui-ios GitHub Wiki
Class
A transparent control with text that executes your custom code in response to user interactions.
Declaration
open class GhostButton: CustomButton, AnyAppThemable, AccessibilitySupport
Overview
Ghost Button is transparent button with text. It is used in cases where the main button is not enough, often paired with it when you need to designate several actions, one of which is the main one.
Configure a Ghost Button
Configuration a Ghost button the similar UIButton.
let button = GhostButton()
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 = GhostButton()
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.