---
title: newKey
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nskeyvaluechangekey/newkey
---

# newKey

If the value of the kindKey entry is NSKeyValueChange.setting, and new was specified when the observer was registered, the value of this key is the new value for the attribute.

## Declaration

```swift
static let newKey: NSKeyValueChangeKey
```

## Discussion

Discussion For NSKeyValueChange.insertion or NSKeyValueChange.replacement, if 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.

## See Also

### Type Properties

- [indexesKey](foundation/nskeyvaluechangekey/indexeskey.md)
- [kindKey](foundation/nskeyvaluechangekey/kindkey.md)
- [notificationIsPriorKey](foundation/nskeyvaluechangekey/notificationispriorkey.md)
- [oldKey](foundation/nskeyvaluechangekey/oldkey.md)
