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

# containerView

The container view to place the halo effect into.

## Declaration

```swift
weak var containerView: UIView? { get set }
```

## Discussion

Discussion If you don’t set this property, the system automatically determines the container according to the focus item that provides the effect and referenceView, if present.

## See Also

### Configuring a halo effect

- [referenceView](uikit/uifocushaloeffect/referenceview.md)
- [position](uikit/uifocushaloeffect/position-swift.property.md)
- [UIFocusHaloEffect.Position](uikit/uifocushaloeffect/position-swift.enum.md)
