Make UITabbarVC switching animate
nilc.nolan@gmail.com/NilTabbarAnimator"">
Make UITabBarController switching tab with an animation.
Swift > 3.0
NilTabbarAnimator is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod 'NilTabbarAnimator'
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
}
}
NilTabbarAnimator is available under the MIT license. See the LICENSE file for more info.