Highly customizable SwiftUI TabBar, which allows you to create both simple tabbars and non-standard ones with a unique design.
- SwiftUI
- iOS 14.0 or above
Add https://github.com/daniil108/SuperTabBar using Package Dependecies.
pod 'SuperTabBar'
import SuperTabBar
enum MyTab {
case firstTab
case secondTab
case thirdTab
}
extension MyTab: SuperTab {
...
}
import SuperTabBar
struct MyView: View {
@State private var selectedTab = MyTab.firstTab
var body: some View {
SuperTabBar(selection: $selectedTab) {
Text("First screen")
.tabItem(for: MyTab.firstTab)
Text("Second screen")
.tabItem(for: MyTab.secondTab)
Text("Third screen")
.tabItem(for: MyTab.thirdTab)
}
}
}
Any contribution is more than welcome! You can contribute through pull requests and issues on GitHub.