Skip to content

Instantly share code, notes, and snippets.

@ohlulu
Last active June 20, 2019 15:04
Show Gist options
  • Save ohlulu/8b87e57db1fc5ee1be4b0e134e045a86 to your computer and use it in GitHub Desktop.
Save ohlulu/8b87e57db1fc5ee1be4b0e134e045a86 to your computer and use it in GitHub Desktop.
@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