---
title: "init(style:locale:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/personnamecomponents/attributedstyle/init(style:locale:)"
---

# init(style:locale:)

## Declaration

```swift
init(style: PersonNameComponents.FormatStyle.Style = .medium, locale: Locale = .autoupdatingCurrent)
```
