VisualLinkItem

public struct VisualLinkItem: VisualItemRepresentable

The associated value of a VisualItem of type .link.

  • The title for this Link

    Declaration

    Swift

    public let title: String
  • The URL

    Declaration

    Swift

    public let href: URL
  • Create a VisualLinkItem.

    Declaration

    Swift

    public init(title: String, href: URL)

    Parameters

    title

    The title for the link

    href

    The URL for the link

  • Create a VisualLinkItem from attributes.

    Declaration

    Swift

    public init?(attributes: AnyObject?)

    Parameters

    attributes

    the attributes (title, link)