2

I have a modal segue. In the Storyboard segue from the Attributes inspector I uncheck the Animates option and to dismiss the UIViewController inside a UINavigationController I'm doing this:

self.dismiss(animated: false, completion: nil)

But it stills doing the top to bottom animation to close.

Is anyway to close a modal without animation?

pableiros
  • 14,932
  • 12
  • 99
  • 105

1 Answers1

0

This is what I have to do to close the modal UIViewController inside a UINavigationController without animation:

self.presentingViewController?.dismiss(animated: false, completion: nil)
pableiros
  • 14,932
  • 12
  • 99
  • 105