<!--
{
  "documentType" : "article",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/nslayoutmanager-attributedstring",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "attributedString"
}
-->

# attributedString

The text storage object from which the `NSGlyphGenerator` object procures characters for glyph generation.

## Discussion

```swift
var attributedString: NSAttributedString? { get }
```

This property is part of the `NSGlyphStorage` protocol, for use by the glyph generator. For `NSLayoutManager` the attributed string is equivalent to the text storage.

---

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)