encode(to:)
func encode(to encoder: any Encoder) throws
func encode(to encoder: any Encoder) throws
s10Foundation20PersonNameComponentsV6encode2toys7Encoder_p_tKF
What are these?3XWVY
import Foundation
struct PersonNameComponents
protocol Encoder
A type that can encode values into a native format for external representation.
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.
typealias ReferenceType = NSPersonNameComponents