<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSAttributedString/Key/inlinePresentationIntent",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@NSInlinePresentationIntentAttributeName"
  },
  "title" : "inlinePresentationIntent"
}
-->

# inlinePresentationIntent

An attribute that provides details for an inline Markdown element.

```
static let inlinePresentationIntent: NSAttributedString.Key
```

## Discussion

The value of this key is an [`NSNumber`](/documentation/Foundation/NSNumber) that contains a value from the [`InlinePresentationIntent`](/documentation/Foundation/InlinePresentationIntent) type. This value indicates the Markdown formatting to apply to the range of text.

The system provides default visual treatments for ranges of text with this attribute. To replace the default visual treatment, remove this attribute and replace it with the formatting options you want.

---

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)