Animators
Custom animators for presentation and navigation transitions. Super simple to use! Just call one of two configuration methods to setup navigation or presentation animations.
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
GIF animation
Bottom Slide:
Fade:
Right Slide:
Installation
Carthage
Please check official guide
Cartfile:
github "APUtils/Animators"
CocoaPods
Animators is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'Animators'
Usage
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.
Contributions
Any contribution is more than welcome! You can contribute through pull requests and issues on GitHub.
Author
Anton Plebanovich, [email protected]
License
Animators is available under the MIT license. See the LICENSE file for more info.