0

In my application I basically have 3 VC`s. VC 1 is the Homescreen. Over VC 2 you get to VC 3. And here is my problem. I want to dismiss VC 3 and end up at VC 1. At first I tried it with:

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

But obviously this doesn`t work because than you end up at VC 2.

Then I tried:

performSegue(withIdentifier: "Identifier123456789", sender: self)

But then obviously there is no animation.

Now my question:

  1. Is there a way to define to which VC it should be dismissed, or
  2. Is there a way to recreate the dismiss-animation.

Explanation of Storyboard

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Quintus
  • 35
  • 1
  • 10

0 Answers0