customMirror
var customMirror: Mirror { get }
var customMirror: Mirror { get }
s10Foundation20PersonNameComponentsV12customMirrors0F0Vvp
What are these?635QS
import Foundation
struct PersonNameComponents
struct Mirror
A representation of the substructure and display style of an instance of any type.
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 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 = NSPersonNameComponents