Last active
August 23, 2018 17:41
-
-
Save laevandus/aacae5923a30f6c857169b3a435ef03c 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
final class ViewController: UIViewController, UIViewControllerTransitioningDelegate { | |
@objc func showView() { | |
let presentedViewController = PresentedViewController() | |
presentedViewController.modalPresentationStyle = .custom | |
presentedViewController.transitioningDelegate = self | |
present(presentedViewController, animated: true, completion: nil) | |
} | |
private let transition = CustomTransition() | |
func animationController(forPresented presented: UIViewController, presenting: UIViewController, source: UIViewController) -> UIViewControllerAnimatedTransitioning? { | |
return transition | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment