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

# isOpaque

A Boolean value indicating whether the view fills its frame rectangle with opaque content.

```
var isOpaque: Bool { get }
```

## Discussion

The default value of this property is <doc://com.apple.documentation/documentation/Swift/false> to reflect the fact that views do no drawing by default. Subclasses can override this property and return <doc://com.apple.documentation/documentation/Swift/true> to indicate that the view completely covers its frame rectangle with opaque content. Doing so can improve performance during drawing operations by eliminating the need to render content behind the view.

## See Also

[`opaqueAncestor`](/documentation/AppKit/NSView/opaqueAncestor)

The view’s closest opaque ancestor, which might be the view itself.



---

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)