The view to be animated by the animator objects during a transition.
- iOS 10.0+
- Mac Catalyst 13.0+
- tvOS 10.0+
The view to present. This view must be either the presented view controller’s view or an ancestor of that view.
The default implementation of this method returns the presented view controller’s view. If you want to animate a different view, you may override this method and return that view. The view you specify must either be the presented view controller’s view or must be one of its ancestors.
The view returned by this method is given to the animator objects, which are responsible for animating it onscreen. The animator objects retrieve the view using the
view(for method of the context object provided by UIKit.
UIKit calls this method multiple times during the course of a presentation, so your implementation should return the appropriate view as quickly as possible. Do not use this method to actually configure your view hierarchy. If you intend to return a custom view, configure your view hierarchy in the