AdmiralSwiftUI Controls TagControl - admiral-team/admiralui-ios GitHub Wiki
Overview
A TagControl
is a label that marks and catalogs information to facilitate the search process. When you click on a tag, all elements with this tag are loaded..
Code
TagControl(title: "Title",
tagStyle: .attention,
leadingView: {
Image(uiImage: "Your image")
},
tapTagControl: {}
)
To create a TagControl, you can use four initializers:
Initializer parameters:
- without leadingView or trailingView
- with leadingView
- with trailingView
- with leadingView and with trailingView
TagControl also has six display styles:
- empty style
- default
- success
- additional
- error
- attention
Live Example
To run live demo with TagControl
open Xcode and run project with Example target. Then in the main page open Page Controls/TagControl:
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.