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.
⭐️ 214
🕓 1 year 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: 214
Last commit: 39 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

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