How don't see previous ViewControllers during unwind for "Present Modally"?

43 Views Asked by At

I want to create three view controllers: A -> B -> C -> A

"B" and "C" controllers have to be transparent, so I create "Present Modally" segue. From "C" I created unwind segue to "A"

But when I return from "C" to "A" I also see how "B" is closing.

What to do? This is my storyboard:

3 view controllers, first leading to second, second leading to third

View controllers have only this functions:

// DraftAViewController
    @IBAction func goToBTapped(_ sender: UIButton) {
        performSegue(withIdentifier: "segueToB", sender: self)
    }
    
    @IBAction func unwind( _ seg: UIStoryboardSegue) {
    }

// DraftBViewController
    @IBAction func goToCTapped(_ sender: UIButton) {
        performSegue(withIdentifier: "segueToC", sender: self)
    }

// DraftCViewController
    @IBAction func backToATapped(_ sender: UIButton) {
        performSegue(withIdentifier: "unwindToA", sender: self)
    }
Presenting view controllers and dismissing all of them
0

There are 0 best solutions below