ToolBar SwiftUI - admiral-team/admiralui-ios GitHub Wiki
Struct
A control that displays one or more buttons vertically or horizontally edge of your interface.
Declaration
public struct ToolBar: View
Live example
Overview
The control panel displays one to four control items at the bottom of the screen. Each control point is represented by an icon and a text label. Touching one of the control icons takes the user to the control center associated with that icon.
ToolBar
Configure a @State private var toolbarType: ToolBarType = .vertical
@State private var selectedIndex: Int
@State var items = [ToolBarItem]()
ToolBar(
items: $items,
type: $toolbarType,
selectedIndex: $selectedIndex,
onTap: {}
)
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.