PrimaryLinkControl SwiftUI - admiral-team/admiralui-ios GitHub Wiki

Struct

Visual elements that convey a specific action or intention in response to user interactions.


Declaration

public struct PrimaryLinkControlStyle: ButtonStyle

Overview

The button style that presents button with image and text. Component сan be used to show hyperlinks in user interface.

Configure a Primary Link Control

Button(action: {}, label: {})
        .buttonStyle(PrimaryLinkControlStyle(
            image: Image(uiImage: Asset.System.Outline.arrowRightOutline.image),
            text: "Link",
            direction: .left,
            style: .medium
     )
)

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.