Created
June 5, 2018 15:54
-
-
Save vialyx/c27bd46599b08734c9c89d0244b68dbf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final class InteractiveModalTransitioningDelegate: NSObject, UIViewControllerTransitioningDelegate { | |
var interactiveDismiss = true | |
init(from presented: UIViewController, to presenting: UIViewController) { | |
super.init() | |
} | |
// MARK: - UIViewControllerTransitioningDelegate | |
func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? { | |
return nil | |
} | |
func presentationController(forPresented presented: UIViewController, presenting: UIViewController?, source: UIViewController) -> UIPresentationController? { | |
return nil | |
} | |
func interactionControllerForDismissal(using animator: UIViewControllerAnimatedTransitioning) -> UIViewControllerInteractiveTransitioning? { | |
return nil | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment