AdmiralUIKit Controls Buttons GhostButton - admiral-team/admiralui-ios GitHub Wiki

Overview

Transparent button. 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.

Code

let ghostButton = GhostButton()
 uploadDocumentView.isLoading = false
 uploadDocumentView.trackProgressStyle = .default

You can create a GhostButton with the zero frame rectangle by specifying the following parameters in init:

- isLoading: Bool - Loading flag. Activates an  ActivityIndicator when flag sets to true and dissapier when flag sets to false

Live Example

To run live demo with MapButtonStyle open Xcode and run project with Example target. Then in the main page open Page Controls/GhostButton:

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.