andreamazz / BubbleTransition

A custom modal transition that presents and dismiss a controller with an expanding bubble effect.
MIT License
3.32k stars 250 forks source link

How to use the bubble transition programmatically? #41

Closed GaoleMeng closed 6 years ago

GaoleMeng commented 6 years ago

In the demo, the action is directly binding to the storyboard, but when I try to self.present new viewcontroller, the bubble transition won't work, what should I do?

Thanks

GaoleMeng commented 6 years ago

Solved!

birbay commented 5 years ago

I Solved like this

    if let controller = segue.destination as? LoginViewController {
        controller.transitioningDelegate = self
        controller.modalPresentationStyle = .custom
        present(controller, animated: true, completion: nil)
    }