One Logo Pool Ball
Foundation · IOS API REFERENCE

PersonNameComponents.AttributedStyle

struct · iOS 15.0+ · SDK 27.1

struct AttributedStyle

Members (7)

init · iOS 15.0+

init

TypeScript
static init(style?: PersonNameComponents_FormatStyle_Style, locale?: Locale): PersonNameComponents_AttributedStyle
Swift declaration
init(style: PersonNameComponents.FormatStyle.Style = .medium, locale: Locale = .autoupdatingCurrent)
get · iOS 15.0+

style

TypeScript
get style(): PersonNameComponents_FormatStyle_Style
Swift declaration
var style: PersonNameComponents.FormatStyle.Style
set · iOS 15.0+

style

TypeScript
set style(value: PersonNameComponents_FormatStyle_Style)
Swift declaration
var style: PersonNameComponents.FormatStyle.Style
method · iOS 15.0+

format

TypeScript
format(value: PersonNameComponents): AttributedString
Swift declaration
func format(_ value: PersonNameComponents) -> AttributedString

Formats 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 · iOS 15.0+

locale

TypeScript
get locale(): Locale
Swift declaration
var locale: Locale
set · iOS 15.0+

locale

TypeScript
set locale(value: Locale)
Swift declaration
var locale: Locale
method · iOS 15.0+

locale

TypeScript
locale46877(locale: Locale): PersonNameComponents_AttributedStyle
Swift declaration
func locale(_ locale: Locale) -> PersonNameComponents.AttributedStyle

Modifies 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.

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →