Skip to content

KPI Progress Card View

FUIKPIProgressCardView

@IBDesignable open class FUIKPIProgressCardView: FUIKPICardView

Chart card type, where KPI values are centered in the card, inscribed within circular progress ring.

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

Usage

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

Theming

Supported TEXT class paths:

1
2
3
4
5
fdlFUIKPIProgressCardView_title {}
fdlFUIKPIProgressCardView_kpiUnitItem {}
fdlFUIKPIProgressCardView_kpiMetricItem {}
fdlFUIKPIProgressCardView_kpiFractionItem {}
fdlFUIKPIProgressCardView_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
fdlFUIKPIProgressCardView_kpiIconItem {}

Supported IMAGE properties:

1
tint-color: Color;

Last update: December 8, 2020