static func name(style: Style) -> PersonNameComponents.FormatStyle
Creates a person name components format style using the provided format style.
Availability 有効性
Technology
init(style: PersonNameComponents
.FormatStyle
.Style
= .medium, locale: Locale
= .autoupdatingCurrent)
style
The Person
used to format the name.
locale
The Locale
used to create the string representation of the name.
Customize the person name components format style by providing a style and a locale.
The formatted style can be long, medium, short, or abbreviated. The default value is Person
.
The locale provides linguistic and cultural context to the formatted name. The default value is autoupdating
.
省略時の値は、autoupdating
です。
static func name(style: Style) -> PersonNameComponents.FormatStyle