Called when an unwind segue transitions to a new view controller.
- iOS 9.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
The unwind segue being performed.
The view controller closest to the current controller that represents the transition direction. Container view controllers should configure themselves so that this view controller is displayed.
During the execution of an unwind segue, UIKit calls this method on any view controllers in the unwind path to give them an opportunity to reconfigure themselves. Container view controllers must implement this method and use to display the view controller in the
subsequent parameter. For example, a tab bar controller selects the tab containing the specified view controller. Noncontainer view controllers should not override this method.