PersonNameComponents
struct PersonNameComponentsstruct PersonNameComponentsimport Foundationprotocol CopyableA type whose values can be implicitly or explicitly copied.
protocol CustomDebugStringConvertibleA type with a customized textual representation suitable for debugging purposes.
protocol CustomReflectableA type that explicitly supplies its own mirror.
protocol CustomStringConvertibleA type with a customized textual representation.
protocol DecodableA type that can decode itself from an external representation.
protocol EncodableA type that can encode itself to an external representation.
protocol EquatableA type that can be compared for value equality.
protocol Escapableprotocol Hashable : EquatableA type that can be hashed into a Hasher to produce an integer hash value.
protocol ReferenceConvertible : CustomDebugStringConvertible, CustomStringConvertible, HashableDecorates types which are backed by a Foundation reference type.
protocol SendableA thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
init() init(from decoder: any Decoder) throws init(namePrefix: String? = nil, givenName: String? = nil, middleName: String? = nil, familyName: String? = nil, nameSuffix: String? = nil, nickname: String? = nil, phoneticRepresentation: PersonNameComponents? = nil) var customMirror: Mirror { get }var debugDescription: String { get }var description: String { get }var familyName: String?Assuming the full name is: Dr. Johnathan Maple Appleseed Esq., nickname “Johnny”, name passed from one generation to another to indicate lineage, e.g. Appleseed
var givenName: String?Assuming the full name is: Dr. Johnathan Maple Appleseed Esq., nickname “Johnny”, name bestowed upon an individual by one’s parents, e.g. Johnathan
var middleName: String?Assuming the full name is: Dr. Johnathan Maple Appleseed Esq., nickname “Johnny”, secondary given name chosen to differentiate those with the same first name, e.g. Maple
var namePrefix: String?Assuming the full name is: Dr. Johnathan Maple Appleseed Esq., nickname “Johnny”, pre-nominal letters denoting title, salutation, or honorific, e.g. Dr., Mr.
var nameSuffix: String?Assuming the full name is: Dr. Johnathan Maple Appleseed Esq., nickname “Johnny”, post-nominal letters denoting degree, accreditation, or other honor, e.g. Esq., Jr., Ph.D.
var nickname: String?Assuming the full name is: Dr. Johnathan Maple Appleseed Esq., nickname “Johnny”, name substituted for the purposes of familiarity, e.g. “Johnny”
var phoneticRepresentation: PersonNameComponents? { get set }Each element of the phoneticRepresentation should correspond to an element of the original PersonNameComponents instance. The phoneticRepresentation of the phoneticRepresentation object itself will be ignored. nil by default, must be instantiated.
func encode(to encoder: any Encoder) throws typealias ReferenceType = NSPersonNameComponentsstatic func != (lhs: Self, rhs: Self) -> Bool Returns a Boolean value indicating whether two values are not equal.