<!--
{
  "availability" : [
    "macOS: 12.0.0 -",
    "swift: 5.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSView/Invalidations/Display",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "s:So6NSViewC6AppKitE13InvalidationsO7DisplayV"
  },
  "title" : "NSView.Invalidations.Display"
}
-->

# NSView.Invalidations.Display

A change that requires the system to redraw a view’s content.

```
struct Display
```

## Overview

Use [`display`](/documentation/AppKit/NSViewInvalidating/display) to create an instance of this type.

## Topics

### Creating the invalidation type

[`func display()`](/documentation/AppKit/NSView/display())

Displays the view and all its subviews if possible, invoking each of the `NSView` methods [`lockFocus()`](/documentation/AppKit/NSView/lockFocus()), [`draw(_:)`](/documentation/AppKit/NSView/draw(_:)), and [`unlockFocus()`](/documentation/AppKit/NSView/unlockFocus()) as necessary.

[`init()`](/documentation/AppKit/NSView/Invalidations/Display/init())

Creates the invalidation type.

### Invalidating the display

[`func invalidate(view: NSView)`](/documentation/AppKit/NSViewInvalidating/invalidate(view:))

Indicates to the system that an aspect of a view is invalid and triggers the necessary update.

## Relationships

### Conforms To

[`NSViewInvalidating`](/documentation/AppKit/NSViewInvalidating)

---

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)