UIAnchor
open class UIAnchor
A wrapper around an HTML a (anchor) element. This is what is used for links.
-
The anchor element
UIAnchorrepresents.Declaration
Swift
public let anchor = UIElement(element: .a) -
The text in the anchor.
Declaration
Swift
public var title: String -
The link the anchor opens when selected.
Declaration
Swift
public var link: String -
Creates a basic
UIAnchorobject with a title and link.Declaration
Swift
public init(title: String, link: String)Parameters
titleThe text that is used for the anchor element.
linkThe link the anchor will open when it is selected.
-
The top level anchor element of the
UIAnchorobject.Declaration
Swift
public var topLevelElement: UIElement
UIAnchor Class Reference