Contents

renderingAttributesValidator

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

Declaration

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

Discussion

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

See Also

Configuring global layout manager options