Instance Method

view(forKey:)

Returns the specified view involved in the transition.

Required.

Declaration

func view(forKey key: UITransitionContextViewKey) -> UIView?

Parameters

key

The key identifying the view you want. For a list of possible keys, see “View Transition Keys” constants in UIViewControllerContextTransitioning.

Return Value

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

See Also

Getting the Views and View Controllers

func viewController(forKey: UITransitionContextViewControllerKey) -> UIViewController?

Returns the view controllers involved in the transition.

Required.

var containerView: UIView

Returns the view in which the transition takes place.

Required.