<!--
{
  "availability" : [
    "macOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSGlassEffectContainerView/contentView",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSGlassEffectContainerView(py)contentView"
  },
  "title" : "contentView"
}
-->

# contentView

The view that contains descendant views to merge together when in proximity to each other.

```
var contentView: NSView? { get set }
```

## Discussion

The glass effect container view does the following:

1. Elevates the z-order of descendants of `contentView` to position them above the `contentView`.
2. Merges descendants together if the views are sufficiently similar and within the proximity specified in [`spacing`](/documentation/AppKit/NSGlassEffectContainerView/spacing).
3. Processes similar glass effect views as a batch to improve performance.

---

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)