Contents

yusadogru/cardtabbar

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()]
    }
}

<br> <br>

<p align="center"> <img src="Docs/example.png" width="540" height="355" /> </p>

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

Package Metadata

Repository: yusadogru/cardtabbar

Default branch: main

README: README.md