UINavigation
open class UINavigation
A wrapper object around a navigation element with a unordered list of anchors.
-
The top level nav of the
UINavigation
object.Declaration
Swift
public let nav = UIElement(element: .nav)
-
The anchor elements in the
nav's
unordered list.Declaration
Swift
public var anchors: [UIAnchor]
-
Creates a
UINavigation
with the attributs for the anchor elements.Declaration
Swift
public init(navItems: [String: String])
Parameters
navItems
The dictionary used for getting the information for the anchors. The key is used for the text and the value is used as the link.