TabBarUIAction
public struct TabBarUIAction : View
The TabBArUIAction component. This is the main component that contains all the other parts.
-
Creates a
TabBarUIActioninstance.Declaration
Swift
public init( currentTab: Binding<TabPosition>, showModal: Binding<Bool>, colors: Colors, @ViewBuilder content: () -> TupleView<(TabScreen, TabModal, TabScreen)> )Parameters
currentTabthe current tab selected as
Bindingstate object of typeTabPosition.showModalthe show modal toggle as
Bindingstate object of typeBool.colorsthe colors of the tab bar. See
Colors.contentthe content of the tab bar expressed as 3 items: first tab, modal and second tab.
-
Creates a
TabBarUIActioninstance.Declaration
Parameters
currentTabthe current tab selected as
Bindingstate object of typeTabPosition.showModalthe show modal toggle as
Bindingstate object of typeBool.colorsthe colors of the tab bar. See
Colors.contentthe 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 }
View on GitHub
TabBarUIAction Structure Reference