AdmiralSwiftUI Controls PrimaryLinkControlStyle - admiral-team/admiralui-ios GitHub Wiki
Overview
PrimaryLinkControlStyle
- the button style that presents button with image and text..
Code
var body: some View {
Button(action: {}, label: {})
.buttonStyle(PrimaryLinkControlStyle(
image: Image(uiImage: Asset.System.Outline.arrowRightOutline.image),
text: "Link",
direction: .left,
style: .medium
))
}
You can create a button with PrimaryLinkControlStyle specifying the following parameters in init:
- image - Image.
- text - String value.
- direction - An arrangement of text and image relative to each other.
- style - Style of view, used to change size of view.
Live Example
To run live demo with PrimaryLinkControlStyle
open Xcode and run project with Example target. Then in the main page open PageControl/PrimaryLinkControlStyle:
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.