TabBarUIAction

public struct TabBarUIAction : View

The TabBArUIAction component. This is the main component that contains all the other parts.

  • Creates a TabBarUIAction instance.

    Declaration

    Swift

    public init(
        currentTab: Binding<TabPosition>,
        showModal: Binding<Bool>,
        colors: Colors,
        @ViewBuilder content: () -> TupleView<(TabScreen, TabModal, TabScreen)>
    )

    Parameters

    currentTab

    the current tab selected as Binding state object of type TabPosition.

    showModal

    the show modal toggle as Binding state object of type Bool.

    colors

    the colors of the tab bar. See Colors.

    content

    the content of the tab bar expressed as 3 items: first tab, modal and second tab.

  • Creates a TabBarUIAction instance.

    Declaration

    Swift

    public init(
        currentTab: Binding<TabPosition>,
        showModal: Binding<Bool>,
        colors: Colors,
        @ViewBuilder content: () -> TupleView<(TabScreen, TabScreen, TabModal, TabScreen, TabScreen)>
    )

    Parameters

    currentTab

    the current tab selected as Binding state object of type TabPosition.

    showModal

    the show modal toggle as Binding state object of type Bool.

    colors

    the colors of the tab bar. See Colors.

    content

    the content of the tab bar expressed as 5 items: first tab, second tab, modal and third tab and forth tab.

  • The body of TabBArUIAction. It creates a view with the modal tab content.

    Declaration

    Swift

    public var body: some View { get }