I have a two storyboards.
StoryboardA has a storyboard reference to StoryboardB. I present a viewcontroller from StoryboardB using a button action (user taps a button and it shows the viewcontroller in storyboardB).
storyboardB has a Cancel button. This button is linked to an IBAction within the view controller which then calls performSegueWithIdentifier. In StoryboardB I have ctrl dragged from the storyboard scene to the exit to create an unwind segue. I've assigned "cancelSegue" as the identifier of this unwind and use it in the performSegueWithIdentifier call.
However when I then call the performSegueWithIdentifier, nothing happens. I have log output on the destination unwind IBAction and have put breakpoints. No log output happens and no breakpoints are hit. No error or anything. The fact that when I ctrl dragged to the exit to create the unwind segue tells me that StoryboardB can see the segues from StoryboardA.
I've tried things such as in this StackOverflow post from a number of years ago but none of it worked. https://stackoverflow.com/questions/33369171/can-an-unwind-segue-work-between-two-storyboards-connected-by-a-storyboard-ref
I'm deploying to iOS15 and am on xCode 14.0.1.
What else do I need to do to get this unwind to work?