FUIObjectHeaderChartView

Chart & KPI content View for presentation in FUIObjectHeader. Set an instance of this view to the FUIObjectHeader.detailContentView property, for correct layout.

Usage

let view = FUIObjectHeaderChartView()
view.title.text = "Voltage Readings"
view.subtitle.text = "Volatility"
view.trend.text = "0.24%""
view.trendImage = FUIIconLibrary.analytics.trendUp.withRenderingMode(.alwaysTemplate)
view.trendSemanticColor = UIColor.preferredFioriColor(forStyle: .positive)
view.chartView.dataSource = self
view.isEnabled = true

objectHeader.detailContentView = view
  • Title text for view

    Declaration

    Swift

    public private(set) var title: FUIText { get }
  • Subtitle text for view.

    Declaration

    Swift

    public private(set) var subtitle: FUIText { get }
  • Trend text for view. Is colored by trendSemanticColor if one is supplied.

    Declaration

    Swift

    public private(set) var trend: FUIText { get }
  • Image displayed in-line with trend string. Set image renderingMode to .alwaysTemplate to apply trendSemanticColor: UIColor as tint.

    Declaration

    Swift

    public var trendImage: UIImage? { get set }
  • Color applied to trend, trendImage, and chartView series plot.

    Declaration

    Swift

    public var trendSemanticColor: UIColor? { get set }
  • Boolean value to determine whether a user is able to interact with the control

    Declaration

    Swift

    open override var isEnabled: Bool { get set }
  • UILongPressGestureRecognizer to be used on longPress of ChartHeaderContent

    Declaration

    Swift

    public private(set) var longPressGestureRecognizer: UILongPressGestureRecognizer! { get }