Contents

viewController(forKey:)

Returns a view controller involved in the transition.

Declaration

func viewController(forKey key: UITransitionContextViewControllerKey) -> UIViewController?

Parameters

  • key:

    The key identifying the view controller you want. For a list of possible keys, see View Controller Transition Keys.

Return Value

The view controller object for the specified key or nil if the view controller could not be found.

See Also

Accessing the transition objects