UITabBarController got custom tab bar implementation! ๐
Add the following to Package.swift
:
.package(url: "https://github.com/stateman92/TabBarController", exact: .init(0, 0, 2))
let tabBarController = BaseTabBarController<MainScreenTabs>(tabBarView: AdaptiveTabBar(selectedColor: .red, unselectedColor: .blue))
addChild(tabBarController)
tabBarController.view.frame = view.bounds
view.addSubview(tabBarController.view)
tabBarController.didMove(toParent: self)
// ...
tabBarController.setSelectedIndex(index: 2)
For details see the Example app.