One Logo Pool Ball
Foundation · IOS API REFERENCE

PersonNameComponentsFormatter

class · iOS 9.0+ · SDK 27.1

class PersonNameComponentsFormatter

Members (12)

static · iOS 9.0+

localizedString

TypeScript
static localizedString(components: PersonNameComponents, nameFormatStyle: PersonNameComponentsFormatter_Style, nameOptions?: PersonNameComponentsFormatter_Options): string
Swift declaration
class func localizedString(from components: PersonNameComponents, style nameFormatStyle: PersonNameComponentsFormatter.Style, options nameOptions: PersonNameComponentsFormatter.Options = []) -> String
method · iOS 9.0+

annotatedString

TypeScript
annotatedString(components: PersonNameComponents): NSAttributedString
Swift declaration
func annotatedString(from components: PersonNameComponents) -> NSAttributedString
method · iOS 9.0+

getObjectValue

TypeScript
getObjectValue(string: string): { $ret: boolean; $out: { "obj": (unknown) | null; "error": (NSString) | null } }
Swift declaration
func getObjectValue(_ obj: AutoreleasingUnsafeMutablePointer<AnyObject?>?, for string: String, errorDescription error: AutoreleasingUnsafeMutablePointer<NSString?>?) -> Bool

Omit the output parameters from the call. The result contains $ret and $out, with obj, error inside $out.

init

init

TypeScript
static init(): PersonNameComponentsFormatter
Swift declaration
init()
method · iOS 10.0+

personNameComponents

TypeScript
personNameComponents(string: string): (PersonNameComponents) | null
Swift declaration
func personNameComponents(from string: String) -> PersonNameComponents?
method · iOS 9.0+

string

TypeScript
string(components: PersonNameComponents): string
Swift declaration
func string(from components: PersonNameComponents) -> String
get · iOS 15.0+

locale

TypeScript
get locale(): (Locale) | null
Swift declaration
var locale: Locale! { get set }
set · iOS 15.0+

locale

TypeScript
set locale(value: (Locale) | null)
Swift declaration
var locale: Locale! { get set }
get · iOS 9.0+

isPhonetic

TypeScript
get isPhonetic(): boolean
Swift declaration
var isPhonetic: Bool { get set }
set · iOS 9.0+

isPhonetic

TypeScript
set isPhonetic(value: boolean)
Swift declaration
var isPhonetic: Bool { get set }
get · iOS 9.0+

style

TypeScript
get style(): PersonNameComponentsFormatter_Style
Swift declaration
var style: PersonNameComponentsFormatter.Style { get set }
set · iOS 9.0+

style

TypeScript
set style(value: PersonNameComponentsFormatter_Style)
Swift declaration
var style: PersonNameComponentsFormatter.Style { get set }

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →