<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSKeyValueChangeKey/newKey",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@NSKeyValueChangeNewKey"
  },
  "title" : "newKey"
}
-->

# newKey

If the value of the [`kindKey`](/documentation/Foundation/NSKeyValueChangeKey/kindKey) entry is [`NSKeyValueChange.setting`](/documentation/Foundation/NSKeyValueChange/setting), and [`new`](/documentation/Foundation/NSKeyValueObservingOptions/new) was specified when the observer was registered, the value of this key is the new value for the attribute.

```
static let newKey: NSKeyValueChangeKey
```

## Discussion

For [`NSKeyValueChange.insertion`](/documentation/Foundation/NSKeyValueChange/insertion) or [`NSKeyValueChange.replacement`](/documentation/Foundation/NSKeyValueChange/replacement), if [`new`](/documentation/Foundation/NSKeyValueObservingOptions/new) was specified when the observer was registered, the value for this key is an `NSArray` instance that contains the objects that have been inserted or replaced other objects, respectively.

---

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)