<!--
{
  "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/NSTextLayoutManagerDelegate/textLayoutManager(_:renderingAttributesForLink:at:defaultAttributes:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSTextLayoutManagerDelegate(im)textLayoutManager:renderingAttributesForLink:atLocation:defaultAttributes:"
  },
  "title" : "textLayoutManager(_:renderingAttributesForLink:at:defaultAttributes:)"
}
-->

# textLayoutManager(_:renderingAttributesForLink:at:defaultAttributes:)

The method the framework calls to return a dictionary of attributes for rendering a link attribute name.

```
optional func textLayoutManager(_ textLayoutManager: NSTextLayoutManager, renderingAttributesForLink link: Any, at location: any NSTextLocation, defaultAttributes renderingAttributes: [NSAttributedString.Key : Any] = [:]) -> [NSAttributedString.Key : Any]?
```

## Parameters

`textLayoutManager`

The `NSTextLayoutManager`.

`link`

The link.

`location`

The [`NSTextLocation`](/documentation/UIKit/NSTextLocation) of the link.

`renderingAttributes`

A dictionary of attributes whose keys are <doc://com.apple.documentation/documentation/Foundation/NSAttributedString/Key> values.

## Return Value

A dictionary of  attributes.

---

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)