---
title: "formatted(_:)"
framework: Swift
role: symbol
role_heading: Instance Method
platforms: [iOS 15.0+, iPadOS 15.0+, Mac Catalyst 15.0+, macOS 12.0+, tvOS 15.0+, visionOS 1.0+, watchOS 8.0+]
path: swift/sequence/3767271-formatted
---

# formatted(_:)

## Declaration

```swift
func formatted<S>(_ style: S) -> S.FormatOutput where Self == S.FormatInput, S : FormatStyle
```

## See Also

### Formatting a Sequence

- [formatted()](formatted().md)
- [ListFormatStyle](../../foundation/listformatstyle.md)
