---
title: AttributedString.FormattingOptions
framework: foundation
role: symbol
role_heading: Structure
path: foundation/attributedstring/formattingoptions
---

# AttributedString.FormattingOptions

Options that affect the handling of attributes.

## Declaration

```swift
struct FormattingOptions
```

## Topics

### Creating Formatting Options

- [init()](foundation/attributedstring/init().md)
- [init(_:)](foundation/attributedstring/init(_:)-1fru0.md)
- [init(_:)](foundation/attributedstring/init(_:)-8tnoq.md)

### Using Defined Formatting Options

- [applyReplacementIndexAttribute](foundation/attributedstring/formattingoptions/applyreplacementindexattribute.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Creating a Localized Attributed String

- [init(localized:options:table:bundle:locale:comment:)](foundation/attributedstring/init(localized:options:table:bundle:locale:comment:)-8dlnl.md)
- [init(localized:options:table:bundle:locale:comment:including:)](foundation/attributedstring/init(localized:options:table:bundle:locale:comment:including:)-8uknv.md)
- [init(localized:options:table:bundle:locale:comment:including:)](foundation/attributedstring/init(localized:options:table:bundle:locale:comment:including:)-5jzpg.md)
- [String.LocalizationValue](swift/string/localizationvalue.md)
- [init(localized:)](foundation/attributedstring/init(localized:).md)
- [init(localized:including:)](foundation/attributedstring/init(localized:including:)-2xebo.md)
- [init(localized:including:)](foundation/attributedstring/init(localized:including:)-15xc5.md)
- [LocalizedStringResource](foundation/localizedstringresource.md)
