---
title: renderingAttributesValidator
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/nstextlayoutmanager/renderingattributesvalidator
---

# renderingAttributesValidator

A callback block that the framework invokes whenever the text layout manager needs to validate the rendering attributes for the range.

## Declaration

```swift
var renderingAttributesValidator: ((NSTextLayoutManager, NSTextLayoutFragment) -> Void)? { get set }
```

## Discussion

Discussion The validator uses setRenderingAttributes(_:for:) to fill the rendering attributes appropriate for the range inside textLayoutFragment.

## See Also

### Configuring global layout manager options

- [layoutQueue](uikit/nstextlayoutmanager/layoutqueue.md)
- [usesFontLeading](uikit/nstextlayoutmanager/usesfontleading.md)
- [usesHyphenation](uikit/nstextlayoutmanager/useshyphenation.md)
- [limitsLayoutForSuspiciousContents](uikit/nstextlayoutmanager/limitslayoutforsuspiciouscontents.md)
