FUIKPICardView
@IBDesignable
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:
fdlFUIKPICardView_title {}
fdlFUIKPICardView_kpiUnitItem {}
fdlFUIKPICardView_kpiMetricItem {}
fdlFUIKPICardView_kpiFractionItem {}
fdlFUIKPICardView_status {}
Supported TEXT
properties:
font-color: Color;
font-style: UIFontTextStyle;
text-line-clamp: Integer;
text-align: NSTextAlignment;
Supported IMAGE
class paths:
fdlFUIKPICardView_kpiIconItem {}
Supported IMAGE
properties:
tint-color: Color;
-
Developer formatted
NSAttributedString
to be displayed as the KPI. Will override values set tokpiItems
property.Declaration
Swift
public var kpiAttributedText: NSAttributedString! { get set }