Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vialyx/c27bd46599b08734c9c89d0244b68dbf to your computer and use it in GitHub Desktop.
Save vialyx/c27bd46599b08734c9c89d0244b68dbf to your computer and use it in GitHub Desktop.
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