UIAnchor
open class UIAnchor
A wrapper around an HTML a
(anchor) element. This is what is used for links.
-
The anchor element
UIAnchor
represents.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
UIAnchor
object with a title and link.Declaration
Swift
public init(title: String, link: String)
Parameters
title
The text that is used for the anchor element.
link
The link the anchor will open when it is selected.
-
The top level anchor element of the
UIAnchor
object.Declaration
Swift
public var topLevelElement: UIElement