An encapsulation of information about an unwind segue.


class UIStoryboardUnwindSegueSource : NSObject


You do not create instances of this class yourself. UIKit creates an unwind segue source object in response to the triggering of an unwind segue. It passes the source object to other view controller methods that determine the destination of the unwind segue. The information in an unwind segue source object includes the view controller being dismissed by the segue and the action method responsible for the dismissal.


Getting the Unwind Segue Attributes

var source: UIViewController

The view controller being dismissed by the unwind segue.

var unwindAction: Selector

The action method associated with the unwind segue.

var sender: Any?

The object that performed the unwind action.


Inherits From

Conforms To

See Also


Customizing the Behavior of Segue-Based Presentations

Pass data between view controllers during a segue, and programmatically control when segues occur.

Dismissing a View Controller with an Unwind Segue

Configure an unwind segue in your storyboard file that dynamically chooses the most appropriate view controller to display next.

class UIStoryboard

An encapsulation of the design-time view controller graph represented in an Interface Builder storyboard resource file.

class UIStoryboardSegue

An object that prepares for and performs the visual transition between two view controllers.