description
var description: String { get }
var description: String { get }
import Foundation
struct PersonNameComponents
@frozen struct String
A Unicode string value that is a collection of characters.
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 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 = NSPersonNameComponents