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

Class

A horizontal control made of multiple segments with center title and description.


Declaration

public struct InformerTab: View

Overview

The component is used to switch between two or three tabs.

Live example

Configure a Informer Tab

@State private var selectedItem: Int = 0
InformerTab(
    items: [
        InformerSegmentedItem(title: "2 900 ₽", subtitle: "в месяц"),
        InformerSegmentedItem(title: "2 900 ₽", subtitle: "в месяц")
    ],
    customView: AnyView("Your View"),
    selection: $selectedItem,
    offsetSegment: .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.