Contents

nameComponents

The user’s name.

Declaration

var nameComponents: PersonNameComponents? { get }

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