DawnTransition 1.0.2

DawnTransition 1.0.2

Maintained by soya-bean.



  • By
  • snail-z

DawnTransition

CI Status Version License Platform

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

  1. UINavigationController transitioningļ¼š

    let vc = TestViewController()
    vc.dawn.isNavigationEnabled = true
    vc.dawn.navigationAnimationType = .pageIn(direction: .left)
    self.navigationController?.pushViewController(vc, animated: true)

    isNavigationEnabled

    navigationAnimationType

  2. 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.