SecondaryButton SwiftUI - admiral-team/admiralui-ios GitHub Wiki
Class
A secondary control that executes your custom code in response to user additional interactions.
Declaration
public struct SecondaryButtonStyle: ButtonStyle
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
Button("Text", action: {})
.buttonStyle(SecondaryButtonStyle(isLoading: .constant(false)))
Display loader in Button
Configure you button to view that shows that a task is in progress.
Button("Text", action: {})
.buttonStyle(SecondaryButtonStyle(isLoading: .constant(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.