I've created a segue through IB. When buttonA is clicked, a transition to viewB will occur.
In the button click action, I have
You have created segue from the
UIButton to a
viewController that is the reason segue happens before the execution of condition. Instead of that remove that segue from storyboard and create another from your