IconTab SwiftUI - admiral-team/admiralui-ios GitHub Wiki
Struct
A horizontal control made of multiple segments with icons.
Declaration
public struct IconTab: View
Overview
A horizontal control is a linear set of two or more segments, each of which functions as a circle button with image and text. Use a segmented control to provide closely related choices that affect an object, state, or view.
IconTab
Configure a @State private var selectedTab: Int = 0
IconTab(
models: [
IconTabModel(
image: Image(uiImage: Asset.IconTabs.mobile.image),
text: "One"
),
IconTabModel(
image: Image(uiImage: Asset.IconTabs.card.image),
text: "Two"
)
],
selection: $selectedTab
)
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.