<!--
{
  "availability" : [
    "macOS: 12.0.0 -",
    "swift: 5.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSView/Invalidating/init(wrappedValue:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "s:So6NSViewC6AppKitE12InvalidatingV12wrappedValue_AEy_xq_Gx_q_tcfc"
  },
  "title" : "init(wrappedValue:_:)"
}
-->

# init(wrappedValue:_:)

Creates a property wrapper that notifies the system when a change in the property value invalidates an aspect of the containing view.

```
init(wrappedValue: Value, _ invalidation: InvalidationType)
```

## Parameters

`wrappedValue`

The underlying value referenced by the invalidating variable.

`invalidation`

A type of invalidation.

---

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)