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

# containerView

Returns the view in which the transition takes place.

## Declaration

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

## Return Value

Return Value The container view for the transition animation.

## Discussion

Discussion The container view acts as the host view for any animations between the transitioning view controllers. When animating your own custom views, add them to the container view if you want them to interoperate with the view controllers’ views.

## See Also

### Getting the views and view controllers

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