---
title: referenceView
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uifocushaloeffect/referenceview
---

# referenceView

The view to place the halo effect above.

## Declaration

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

## Discussion

Discussion If you set this property, the halo effect appears above this view. If you also set containerView, this reference view must be a descendant of the container view. The system ensures that the halo effect is in the container but visually above the reference view.

## See Also

### Configuring a halo effect

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