Skip to content

nil-biribiri/NilTabbarAnimator

Repository files navigation

NilTabbarAnimator

CI Status Version License Platform

Make UITabBarController switching tab with an animation.

Preview

Requirements

Swift > 3.0

Installation

NilTabbarAnimator is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'NilTabbarAnimator'

Usage

import UIKit
import NilTabbarAnimator // Import NilTabbarAnimator first

class ViewController: UITabBarController, UITabBarControllerDelegate {
    
    let tabbarDelegate = ScrollingTabBarControllerDelegate(withTransitionDuration: 0.2)

    override func viewDidLoad() {
        super.viewDidLoad()

        // Set UITabBarControllerDelegate 
        self.delegate = tabbarDelegate

    }

}

Author

nilc.nolan@gmail.com

License

NilTabbarAnimator is available under the MIT license. See the LICENSE file for more info.