Last active
September 10, 2019 07:53
-
-
Save ohlulu/5ff89aae56052ced7a8e78b4d2f750b1 to your computer and use it in GitHub Desktop.
This file contains 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
class CustomTransition: NSObject, UIViewControllerTransitioningDelegate { | |
// ... | |
let interaction = UpToDownIneraction() | |
func interactionControllerForPresentation(using animator: UIViewControllerAnimatedTransitioning) -> UIViewControllerInteractiveTransitioning? { | |
return nil | |
} | |
func interactionControllerForDismissal(using animator: UIViewControllerAnimatedTransitioning) -> UIViewControllerInteractiveTransitioning? { | |
print(interation.interacting) | |
return interaction.interacting ? interaction : nil | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment