Created
June 5, 2018 15:58
-
-
Save vialyx/4d3774ca775b2896fc822f4648f99233 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 MyViewController: UIViewController { | |
private var detailsTransitioningDelegate: InteractiveModalTransitioningDelegate! | |
/* | |
Some code | |
*/ | |
@objc | |
private func labelDidTap() { | |
let controller = DetailsViewController() | |
detailsTransitioningDelegate = InteractiveModalTransitioningDelegate(from: self, to: controller) | |
controller.modalPresentationStyle = .custom | |
controller.transitioningDelegate = detailsTransitioningDelegate | |
present(controller, animated: true, completion: nil) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment