UILink

open class UILink

A wrapper class for a UIElement that represents a link element.

  • The link element that the class represents.

    Declaration

    Swift

    public let link: UIElement = UIElement(element: .link)
  • rel

    The rel attribute for the link tag.

    Declaration

    Swift

    public var rel: String = ""
  • The href attribute for the link tag.

    Declaration

    Swift

    public var href: String = ""
  • Creates a instance of UILink with an href and rel properties.

    Declaration

    Swift

    public init(href: String, rel: String)

    Parameters

    href

    The path the the document being linked to.

    rel

    The relationship between the linked document to the current document. View the HTML for more details.