Skip to content

Link Validators

Jeff Hurray edited this page Apr 13, 2017 · 2 revisions

Link Validators

There is a LinkValidatorAttributes protocol provided which is a subprotocol of TextSelectionValidator. It provides extra control for displaying selectable links.

##LinkValidatorAttributes

public protocol LinkValidatorAttributes: TextSelectionValidator {
    var tintColor: UIColor? {get}
    var underlined: Bool {get}
}
  • tintColor: UIColor? provides the color of the link. Defaults to nil.
  • underlined: Bool determines whether or not the link is underlined. Defaults to true
Clone this wiki locally