Contents

textLayoutManager(_:renderingAttributesForLink:at:defaultAttributes:)

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

Declaration

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 of the link.

  • renderingAttributes:

    A dictionary of attributes whose keys are Key values.

Return Value

A dictionary of attributes.

See Also

Responding to layout changes