---
title: "enumerateRenderingAttributes(from:reverse:using:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/nstextlayoutmanager/enumeraterenderingattributes(from:reverse:using:)"
---

# enumerateRenderingAttributes(from:reverse:using:)

Enumerates the rendering attributes from a location you specify.

## Declaration

```swift
func enumerateRenderingAttributes(from location: any NSTextLocation, reverse: Bool, using block: (NSTextLayoutManager, [NSAttributedString.Key : Any], NSTextRange) -> Bool)
```

## Parameters

- `location`: The location at which to start the enumeration.
- `reverse`: Whether to start the enumeration from the end of the range.
- `block`: A closure you provide to determine if the enumeration finishes early.

## Discussion

Discussion This method only enumerates ranges with text that specify rendering attributes. Returning false from block breaks out of the enumeration.

## See Also

### Adjusting rendering

- [linkRenderingAttributes](uikit/nstextlayoutmanager/linkrenderingattributes.md)
- [addRenderingAttribute(_:value:for:)](uikit/nstextlayoutmanager/addrenderingattribute(_:value:for:).md)
- [renderingAttributes(forLink:at:)](uikit/nstextlayoutmanager/renderingattributes(forlink:at:).md)
- [invalidateRenderingAttributes(for:)](uikit/nstextlayoutmanager/invalidaterenderingattributes(for:).md)
- [removeRenderingAttribute(_:for:)](uikit/nstextlayoutmanager/removerenderingattribute(_:for:).md)
- [setRenderingAttributes(_:for:)](uikit/nstextlayoutmanager/setrenderingattributes(_:for:).md)
