Ghost Button SwiftUI
Kirill Borisov edited this page Sep 29, 2022
·
1 revision
A transparent control with text that executes your custom code in response to user interactions.
public struct GhostButtonStyle: ButtonStyle
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.
Button("Text", action: {})
.buttonStyle(GhostButtonStyle(isLoading: .constant(false)))
Configure you button to view that shows that a task is in progress.
Button("Text", action: {})
.buttonStyle(GhostButtonStyle(isLoading: .constant(true)))
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.