<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VisionKit",
  "identifier" : "/documentation/VisionKit/DataScannerViewController/overlayContainerView",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "VisionKit"
    ],
    "preciseIdentifier" : "s:9VisionKit25DataScannerViewControllerC016overlayContainerE0So6UIViewCvp"
  },
  "title" : "overlayContainerView"
}
-->

# overlayContainerView

A view that the data scanner displays over its view without interfering
with the Live Text interface.

```
@MainActor var overlayContainerView: UIView { get }
```

## Discussion

Optionally, add custom highlights to this view that doesn’t interfere
with hit-testing or the guidance objects. If you want to add interface
objects above the highlights, add those objects as subviews of the
<doc://com.apple.documentation/documentation/UIKit/UIViewController/view>
property.

---

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)