Last active
June 20, 2019 15:04
-
-
Save ohlulu/8b87e57db1fc5ee1be4b0e134e045a86 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
@objc func buttonPressed() { | |
let vc = PresentSecondViewController() | |
animation.destinationPoint = button.center | |
vc.transitioningDelegate = animation | |
vc.modalPresentationStyle = .custom | |
animation.interaction.wireGesture(on: vc) | |
present(vc, animated: true, completion: nil) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment