Skip to content

Instantly share code, notes, and snippets.

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