get nameComponents(): (_Foundation_PersonNameComponents) | null
Swift declaration
var nameComponents: PersonNameComponents?
The user's name.
You can use this property to construct the user's name for display. Use the components with an instance of
<doc://com.apple.documentation/documentation/foundation/personnamecomponentsformatter>
to create a string representation for the current locale.
set · iOS 16.0+
nameComponents
TypeScript
set nameComponents(value: (_Foundation_PersonNameComponents) | null)
Swift declaration
var nameComponents: PersonNameComponents?
The user's name.
You can use this property to construct the user's name for display. Use the components with an instance of
<doc://com.apple.documentation/documentation/foundation/personnamecomponentsformatter>
to create a string representation for the current locale.
get · iOS 16.0+
role
TypeScript
get role(): DeviceActivityData_User_FamilyRole
Swift declaration
var role: DeviceActivityData.User.FamilyRole
The type of the user.
set · iOS 16.0+
role
TypeScript
set role(value: DeviceActivityData_User_FamilyRole)