Skip to content

Instantly share code, notes, and snippets.

@kgleong
Last active December 29, 2018 03:22
Show Gist options
  • Save kgleong/e30db6dd9c2d3ed5f7ea5acdf0d44212 to your computer and use it in GitHub Desktop.
Save kgleong/e30db6dd9c2d3ed5f7ea5acdf0d44212 to your computer and use it in GitHub Desktop.
UIViewControllerTransitioningDelegate
extension MyViewController: UIViewControllerTransitioningDelegate {
func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {
return self
}
func animationController(forPresented presented: UIViewController, presenting: UIViewController, source: UIViewController) -> UIViewControllerAnimatedTransitioning? {
return self
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment