Skip to content

KPI Card View

FUIKPICardView

open class FUIKPICardView: FUICardBaseView

Chart card type, where KPI values are centered in the card.

Developer should use the FUIKPIViewItem API set to build KPI content, and set to the kpiItems: [FUIKPIViewItem] property.

Usage

let view = FUIKPICardView()
view.title.text = "Completed"
view.status.text = "Updated 20 min ago"
view.kpiItems = [<#FUIKPIViewItem#>]

Theming

Supported TEXT class paths:

1
2
3
4
5
fdlFUIKPICardView_title {}
fdlFUIKPICardView_kpiUnitItem {}
fdlFUIKPICardView_kpiMetricItem {}
fdlFUIKPICardView_kpiFractionItem {}
fdlFUIKPICardView_status {}

Supported TEXT properties:

1
2
3
4
font-color: Color;
font-style: UIFontTextStyle;
text-line-clamp: Integer;
text-align: NSTextAlignment;

Supported IMAGE class paths:

1
fdlFUIKPICardView_kpiIconItem {}

Supported IMAGE properties:

1
tint-color: Color;

Last update: April 14, 2021