init
TypeScriptstatic init(style?: PersonNameComponents_FormatStyle_Style, locale?: Locale): PersonNameComponents_AttributedStyleSwift declarationinit(style: PersonNameComponents.FormatStyle.Style = .medium, locale: Locale = .autoupdatingCurrent)struct · iOS 15.0+ · SDK 27.1
struct AttributedStylestatic init(style?: PersonNameComponents_FormatStyle_Style, locale?: Locale): PersonNameComponents_AttributedStyleSwift declarationinit(style: PersonNameComponents.FormatStyle.Style = .medium, locale: Locale = .autoupdatingCurrent)get style(): PersonNameComponents_FormatStyle_StyleSwift declarationvar style: PersonNameComponents.FormatStyle.Styleset style(value: PersonNameComponents_FormatStyle_Style)Swift declarationvar style: PersonNameComponents.FormatStyle.Styleformat(value: PersonNameComponents): AttributedStringSwift declarationfunc format(_ value: PersonNameComponents) -> AttributedStringFormats a value, using this style. Use this method when you want to create a single style instance, and then use it to format multiple values. - Parameter value: The value to format. - Returns: A representation of `value`, in the ``FormatOutput`` type, formatted according to the style's configuration.
get locale(): LocaleSwift declarationvar locale: Localeset locale(value: Locale)Swift declarationvar locale: Localelocale46877(locale: Locale): PersonNameComponents_AttributedStyleSwift declarationfunc locale(_ locale: Locale) -> PersonNameComponents.AttributedStyleModifies the format style to use the specified locale. Use this format style to change the locale used by an existing format style. - Parameter locale: The locale to apply to the format style. - Returns: A format style modified to use the provided locale.
No declarations were skipped in this snapshot.