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

# allowsVibrancy

A Boolean value indicating whether the view ensures it is vibrant on top of other content.

```
var allowsVibrancy: Bool { get }
```

## Discussion

AppKit checks this property when the view is incorporated into a view hierarchy that uses vibrancy. If the property is <doc://com.apple.documentation/documentation/Swift/true>, the view takes appropriate measures to ensure its content is vibrant on top of any underlying material. The default value of this property is <doc://com.apple.documentation/documentation/Swift/false>. However, some of AppKit’s view subclasses change the value of this property based on the artwork they draw.

---

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)