Swiftpack.co - stateman92/TabBarController as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by stateman92.
stateman92/TabBarController 0.0.2
UITabBarController got custom tab bar implementation! 😎
⭐️ 1
🕓 39 weeks ago
iOS
.package(url: "https://github.com/stateman92/TabBarController.git", from: "0.0.2")

TabBarController

UITabBarController got custom tab bar implementation! 😎

Setup

Add the following to Package.swift:

.package(url: "https://github.com/stateman92/TabBarController", exact: .init(0, 0, 2))

Or add the package in Xcode.

Usage

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.

Example

Example

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics