A storyboard segue specifies a transition or containment relationship between two scenes in a storyboard, where a scene is a view controller or a window controller and a storyboard is an instance of the
- macOS 10.10+
A storyboard segue has a procedural notion of being invoked, known in the API as being performed. You can take advantage of hooks into the segue performance process by way of the
You do not create storyboard segue objects directly. Instead, the system creates them as needed as segues are invoked. To run code during initialization and performance of a segue, override the
You can initiate a segue programmatically with the
perform method of the
NSSegue protocol. For example, you might do this to transition from a scene in one storyboard file to a scene in another.