Skip to content

Instantly share code, notes, and snippets.

@ohlulu
Last active September 10, 2019 07:53
Show Gist options
  • Save ohlulu/5ff89aae56052ced7a8e78b4d2f750b1 to your computer and use it in GitHub Desktop.
Save ohlulu/5ff89aae56052ced7a8e78b4d2f750b1 to your computer and use it in GitHub Desktop.
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