---
title: nameComponents
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/ckuseridentity/namecomponents
---

# nameComponents

The user’s name.

## Declaration

```swift
var nameComponents: PersonNameComponents? { get }
```

## Discussion

Discussion You can use this property to construct the user’s name for display. Use the components with an instance of PersonNameComponentsFormatter to create a string representation for the current locale.

## See Also

### Accessing User Information

- [userRecordID](cloudkit/ckuseridentity/userrecordid.md)
- [contactIdentifiers](cloudkit/ckuseridentity/contactidentifiers.md)
