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

Class

UnderlineTab - A horizontal control with scroll that consists of multiple segments, each segment functioning as a discrete text button. Has a line under view.


Declaration

public struct UnderlineTab: View

Live example

Overview

The component is used to switch between multiple tabs. UnderlineTab is presented in one version with already planned margins - 16px on the left, 22px on top and 14px on the bottom. You have the ability to enable and disable tabs, change the order of the selected tab.

Configure a SmallInformer

@State private var selectedItem: Int = 0
UnderlineTab(
 items: ["One", "Two", "Three"],
 selection: $selectedItem,
 offset: .constant(16.0)
)

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.