<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSAttributedStringFormattingOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSAttributedStringFormattingOptions"
  },
  "title" : "NSAttributedStringFormattingOptions"
}
-->

# NSAttributedStringFormattingOptions

Options to use when creating an attributed string from a format string and variable list of arguments.

```
enum NSAttributedStringFormattingOptions : NSUInteger;
```

## Topics

### Getting the formatting options

[`NSAttributedStringFormattingApplyReplacementIndexAttribute`](/documentation/Foundation/NSAttributedStringFormattingOptions/NSAttributedStringFormattingApplyReplacementIndexAttribute)

An option to apply to the replaced portions of text in a format string.

[`NSAttributedStringFormattingInsertArgumentAttributesWithoutMerging`](/documentation/Foundation/NSAttributedStringFormattingOptions/NSAttributedStringFormattingInsertArgumentAttributesWithoutMerging)

An option to replace the attributes in a substituted string with those of the provided attributed string.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)