Contents

renderingAttributes(forLink:at:)

Returns a dictionary of rendering attributes for rendering a link.

Declaration

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 NSNull removes the attribute from the final attributes the framework uses for rendering. It has priority over the general rendering attributes.

See Also

Adjusting rendering