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.
link |
Stars: 1 |
Last commit: 5 weeks ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics