---
title: formatted()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/personnamecomponents/formatted()
---

# formatted()

Generates a locale-aware string representation of an instance of person name components using the default format style.

## Declaration

```swift
func formatted() -> String
```

## Return Value

Return Value A string, formatted according to the default style.

## Discussion

Discussion The formatted() method creates a string representation of a person’s name suitable for most uses. var tlc = PersonNameComponents() tlc.familyName = "Clark" tlc.givenName = "Thomas" tlc.middleName = "Louis" tlc.namePrefix = "Dr." tlc.nickname = "Tom" tlc.nameSuffix = "Esq."

tlc.formatted() // Thomas Clark If you want more control over the length and formatting of the name string, consider using the formatted(_:) method and including a format style.

## See Also

### Formatting Person Name Components

- [formatted(_:)](foundation/personnamecomponents/formatted(_:).md)
- [PersonNameComponents.FormatStyle](foundation/personnamecomponents/formatstyle.md)
