Custom animators for presentation and navigation transitions. Super simple to use! Just call one of two configuration methods to setup navigation or presentation animations.
To run the example project, clone the repo, and run pod install
from the Example directory first.
Bottom Slide:
Fade:
Right Slide:
Please check official guide
Cartfile:
github "APUtils/Animators"
Animators is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'Animators'
To setup presentation animation call configuration before controller presentation, usually in awakeFromNib()
. Like that:
override func awakeFromNib() {
super.awakeFromNib()
FadeAnimationDelegate.configurePresentationAnimations(viewController: self)
}
To setup navigation animation call configuration before controller push. You could do it in navigation controller's root view controller viewDidLoad()
method or just before push.
override func viewDidLoad() {
super.viewDidLoad()
RightSlideAnimationDelegate.configureNavigationAnimations(navigationController: navigationController!)
}
FadeAnimationDelegate.configureNavigationAnimations(navigationController: navigationController!)
let vc = ViewController.create(type: .none)
navigationController?.pushViewController(vc, animated: true)
See example and test projects for more details.
Any contribution is more than welcome! You can contribute through pull requests and issues on GitHub.
Anton Plebanovich, anton.plebanovich@gmail.com
Animators is available under the MIT license. See the LICENSE file for more info.