Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vialyx/258b6118e77b36babe52bad2514cee94 to your computer and use it in GitHub Desktop.
Save vialyx/258b6118e77b36babe52bad2514cee94 to your computer and use it in GitHub Desktop.
final class InteractiveModalTransitioningDelegate: NSObject, UIViewControllerTransitioningDelegate {
/*
.......
*/
// MARK: - UIViewControllerTransitioningDelegate
func presentationController(forPresented presented: UIViewController, presenting: UIViewController?, source: UIViewController) -> UIPresentationController? {
return InteractiveModalPresentationController(presentedViewController: presented, presenting: presenting)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment