---
title: alternateDescription
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsattributedstring/key/alternatedescription
---

# alternateDescription

An alternate description for a URL or image.

## Declaration

```swift
static let alternateDescription: NSAttributedString.Key
```

## Discussion

Discussion The value of this key is an NSString with the alternate description of the URL or image. When a Markdown link contains a title string, the system adds this key to the link text and sets the value to the title. For example, in the Markdown tect [Visit the Apple Store](https://store.apple.com “The Apple Store website”), the system sets the value of this key to The Apple Store website.

## See Also

### Getting Markdown attribute keys

- [inlinePresentationIntent](foundation/nsattributedstring/key/inlinepresentationintent.md)
- [presentationIntentAttributeName](foundation/nsattributedstring/key/presentationintentattributename.md)
- [markdownSourcePosition](foundation/nsattributedstring/key/markdownsourceposition.md)
- [imageURL](foundation/nsattributedstring/key/imageurl.md)
