HoverLabel

public struct HoverLabel : Encodable

Undocumented

  • Sets the background color of the hover label.

    By default uses the annotation’s bgcolor made opaque, or white if it was transparent.

    Declaration

    Swift

    public var backgroundColor: Color?
  • Sets the border color of the hover label.

    By default uses either dark grey or white, for maximum contrast with hoverlabel.bgcolor.

    Declaration

    Swift

    public var borderColor: Color?
  • Sets the hover label text font.

    By default uses the global hover font and size, with color from hoverlabel.bordercolor.

    Declaration

    Swift

    public var font: Font?
  • Creates HoverLabel object with specified properties.

    Declaration

    Swift

    public init(backgroundColor: Color? = nil, borderColor: Color? = nil, font: Font? = nil)

    Parameters

    backgroundColor

    Sets the background color of the hover label.

    borderColor

    Sets the border color of the hover label.

    font

    Sets the hover label text font.