DawnTransition
DawnTransition mainly solves the problem of gesture interaction in view controller transition animation. And supports custom transition animation effects
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
-
Requires iOS11.0 or later
-
Requires Automatic Reference Counting (ARC)
Installation
DawnTransition is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'DawnTransition'
Usage
-
UINavigationController transitioningļ¼
let vc = TestViewController() vc.dawn.isNavigationEnabled = true vc.dawn.navigationAnimationType = .pageIn(direction: .left) self.navigationController?.pushViewController(vc, animated: true)
isNavigationEnabled
navigationAnimationType
-
UIModalViewController transitioning:
let vc = TestViewController() vc.dawn.isModalEnabled = true vc.dawn.modalAnimationType = .pageIn(direction: .left) self.present(vc, animated: true)
isModalEnabled
modalAnimationType
Author
snail-z, [email protected]
License
DawnTransition is available under the MIT license. See the LICENSE file for more info.