Primary Button SwiftUI - admiral-team/admiralui-ios GitHub Wiki
Class
A main control that executes your custom code in response to user important interactions.
Declaration
public struct PrimaryButtonStyle: ButtonStyle
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
Button("Text", action: {})
.buttonStyle(PrimaryButtonStyle(isLoading: .constant(false)))
Display loader in Button
Configure you button to view that shows that a task is in progress.
Button("Text", action: {})
.buttonStyle(PrimaryButtonStyle(isLoading: .constant(true)))
Contribution
You can help us to find bugs or ask us to add features.
- To start
issueplease use ready-made templates. - To make changes to the repository, you need to create a
forkof the project, make changes to the code and create apull requestin our project. You can read more about this in the Github documentation.