Swiftpack.co - yusadogru/CardTabBar as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by yusadogru.
yusadogru/CardTabBar 1.0.1
This library is for adding animation to iOS tabbar items, which is inherited from UITabBarController.
⭐️ 130
🕓 1 week ago
iOS
.package(url: "https://github.com/yusadogru/CardTabBar.git", from: "1.0.1")






animated animated


This library is for adding animation to iOS tabbar items, which is inherited from UITabBarController.

Installation

Just add the Sources folder to your project.

or use CocoaPods with Podfile:

pod 'CardTabBar'

or Swift Package Manager

Usage

import CardTabBar

class TabBarController: CardTabBarController {

    override func viewDidLoad() {
        super.viewDidLoad()
        setupViewController()
        setupUI()
    }

    func setupUI() {
        tabBar.tintColor = .TabBar.title
        tabBar.backgroundColor = .background
        tabBar.barTintColor = .Navigation.background
        tabBar.indicatorColor = .TabBar.itemBackground
    }
    
    func setupViewController() {
        viewControllers = [UIViewController(), UIViewController()]
    }
}


License

The library is available as open source under the terms of the MIT License.

GitHub

link
Stars: 130
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

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