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

# renderingAttributes(forLink:at:)

Returns a dictionary of rendering attributes for rendering a link.

```
func renderingAttributes(forLink link: Any, at location: any NSTextLocation) -> [NSAttributedString.Key : Any]
```

## Parameters

`link`

The link.

`location`

The location of the link in the text.

## Return Value

A  dictionary of rendering attributes.

## Discussion

As with other rendering attributes, specifying <doc://com.apple.documentation/documentation/Foundation/NSNull> removes the attribute from the final attributes the framework uses for rendering. It has priority over the general rendering 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)