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

# viewsNeedDisplay

A Boolean value that indicates whether any of the window’s views need to be displayed.

```
var viewsNeedDisplay: Bool { get set }
```

## Discussion

The value of this property is <doc://com.apple.documentation/documentation/Swift/true> when any of the window’s views need to be displayed; otherwise, <doc://com.apple.documentation/documentation/Swift/false>. You should rarely need to set this property; the `NSView` method [`needsDisplay`](/documentation/AppKit/NSView/needsDisplay) and similar methods set it automatically.

---

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)