• Stars
    star
    206
  • Rank 183,719 (Top 4 %)
  • Language
    Swift
  • License
    MIT License
  • Created over 2 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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






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.