<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIFocusHaloEffect/referenceView",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIFocusHaloEffect(py)referenceView"
  },
  "title" : "referenceView"
}
-->

# referenceView

The view to place the halo effect above.

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

## Discussion

If you set this property, the halo effect appears above this view. If you also set [`containerView`](/documentation/UIKit/UIFocusHaloEffect/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)