PresentTurnWithDismissInteractionSegue.swift 556 B

1234567891011121314
  1. //
  2. // Created by Tom Baranes on 01/05/16.
  3. // Copyright © 2016 IBAnimatable. All rights reserved.
  4. //
  5. import UIKit
  6. open class PresentTurnWithDismissInteractionSegue: UIStoryboardSegue {
  7. open override func perform() {
  8. destination.transitioningDelegate = TransitionPresenterManager.shared.retrievePresenter(transitionAnimationType: .turn(from: .left),
  9. interactiveGestureType: .default)
  10. source.present(destination, animated: true, completion: nil)
  11. }
  12. }