<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/NSTextLayoutManager/linkRenderingAttributes",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTextLayoutManager(cpy)linkRenderingAttributes"
  },
  "title" : "linkRenderingAttributes"
}
-->

# linkRenderingAttributes

Returns the default set of attributes for rendering a link.

```
class var linkRenderingAttributes: [NSAttributedString.Key : Any] { get }
```

## Discussion

The base [`NSTextLayoutManager`](/documentation/UIKit/NSTextLayoutManager) class returns with [`single`](/documentation/UIKit/NSUnderlineStyle/single) for <doc://com.apple.documentation/documentation/Foundation/NSAttributedString/Key/underlineStyle> in Swift or [`NSUnderlineStyleAttributeName`](/documentation/UIKit/NSUnderlineStyleAttributeName) in Objective-C, and the platform link color for <doc://com.apple.documentation/documentation/Foundation/NSAttributedString/Key/foregroundColor> in Swift or [`NSForegroundColorAttributeName`](/documentation/UIKit/NSForegroundColorAttributeName) in Objective-C. The platform color for macOS is `linkColor`. Other platforms uses `blueColor`.

---

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)