childContaining(_:)
Returns the child view controller that contains the source of the unwind segue.
Declaration
func childContaining(_ source: UIStoryboardUnwindSegueSource) -> UIViewController?Parameters
- source:
The unwind segue source object containing information about the unwind segue.
Return Value
The view controller that contains the segue source.
Discussion
Container view controllers call this method to identify the child view controller that is the source of the unwind segue. Typically, you call this method from your allowedChildrenForUnwinding(from:) method so that you can remove the corresponding view controller from the returned list of children.