---
title: containerView
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiviewcontrollercontexttransitioning/containerview
---

# containerView

The view that acts as the superview for the views involved in the transition.

## Declaration

```swift
var containerView: UIView { get }
```

## Return Value

Return Value The view that contains both views involved in the transition.

## Discussion

Discussion The container view acts as the superview of all other views (including those of the presenting and presented view controllers) during the animation sequence. UIKit sets this view for you and automatically adds the view of the presenting view controller to it. The animator object is responsible for adding the view of the presented view controller, and the animator object or presentation controller must use this view as the container for all other views involved in the transition.

## See Also

### Accessing the transition objects

- [viewController(forKey:)](uikit/uiviewcontrollercontexttransitioning/viewcontroller(forkey:).md)
- [view(forKey:)](uikit/uiviewcontrollercontexttransitioning/view(forkey:).md)
