So I have a code which looks working fine except I see an error :
App[0000:000000] Warning: Attempt to present <_App.nextView: 0x000000000> on <_App.PreviousView: 0x000000000> whose view is not in the window hierarchy!
So I searched and I think my situation is like this answer.
Except, I need multiple segues as far as I know. So I don't know how to handle, my code is similar like this :
if stateNumber == 3 && !isCondition01True {
performSegue(withIdentifier: "nextView", sender: Any?.self)
}
if stateNumber == 3 && !isCondition02True {
performSegue(withIdentifier: "nextView", sender: Any?.self)
// and like +30 more statements like this
Is there a workaround for like these situations? Like a code to trigger a segue once? I tried to group this statements before but I failed (I'm still learning swift, so I may have missed something).