Contents

linkRenderingAttributes

Returns the default set of attributes for rendering a link.

Declaration

class var linkRenderingAttributes: [NSAttributedString.Key : Any] { get }

Discussion

The base NSTextLayoutManager class returns with single for underlineStyle in Swift or NSUnderlineStyleAttributeName in Objective-C, and the platform link color for foregroundColor in Swift or NSForegroundColorAttributeName in Objective-C. The platform color for macOS is linkColor. Other platforms uses blueColor.

See Also

Adjusting rendering