<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSFontCollection/UserInfoKey",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@T@NSFontCollectionUserInfoKey"
  },
  "title" : "NSFontCollection.UserInfoKey"
}
-->

# NSFontCollection.UserInfoKey

These constants are used as keys in the [`didChangeNotification`](/documentation/AppKit/NSFontCollection/didChangeNotification) `userInfo` dictionary to indicate the changes that have taken place.

```
struct UserInfoKey
```

## Topics

### User Info Keys

[`class let actionUserInfoKey: NSFontCollection.UserInfoKey`](/documentation/AppKit/NSFontCollection/actionUserInfoKey)

An action was taken. See `NSFontCollectionAction Key Values` for the possible values. An `NSString`.

[`class let nameUserInfoKey: NSFontCollection.UserInfoKey`](/documentation/AppKit/NSFontCollection/nameUserInfoKey)

The font collection’s name. If renamed, this is the new name. An `NSString`.

[`class let oldNameUserInfoKey: NSFontCollection.UserInfoKey`](/documentation/AppKit/NSFontCollection/oldNameUserInfoKey)

Included as a value for the [`oldNameUserInfoKey`](/documentation/AppKit/NSFontCollection/oldNameUserInfoKey) key, if present. This is the previous name. An `NSString`.

[`class let visibilityUserInfoKey: NSFontCollection.UserInfoKey`](/documentation/AppKit/NSFontCollection/visibilityUserInfoKey)

The visibly of the font collection. An NSNumber containing a value from the [`NSFontCollection.Visibility`](/documentation/AppKit/NSFontCollection/Visibility) enum.

### Initializers

[`init(rawValue: String)`](/documentation/AppKit/NSFontCollection/UserInfoKey/init(rawValue:))

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)