FUIMapLegendFillItem

public class FUIMapLegendFillItem : UIView

FUIMapLegendFillItem is a UIView that presents a square view with a fill color and border color.

Available in FUIMapLegendFillItem:

  • fillColor: a UIColor that is the fill color of the square view

  • borderColor: a UIColor that is the border color of the square view

Example Initialization and Configuration:


let highActivityRegion = FUIMapLegendFillItem()
highActivityRegion.fillColor = UIColor.preferredFioriColor(forStyle: .map3)
highActivityRegion.borderColor = UIColor.preferredFioriColor(forStyle: .map3)
var highActivityRegionItem = FUIMapLegendItem(title: "High Activity Region")
highActivityRegionItem.fillItem = highActivityRegion

legend.items = [highActivityRegionItem]

  • A UIColor that is the fill color of the square view

    Declaration

    Swift

    public var fillColor: UIColor! { get set }
  • A UIColor that is the borders of the square view

    Declaration

    Swift

    public var borderColor: UIColor! { get set }
  • An initializer to instantiate a FUIMapLegendFillItem

    Declaration

    Swift

    public init()
  • An initializer to instantiate a FUIMapLegendFillItem

    Declaration

    Swift

    required public init?(coder aDecoder: NSCoder)
  • The method responsible for adding the CAShapeLayer border with UIBezierPath

    Declaration

    Swift

    override public func layoutSubviews()