FUIKPICardView
@IBDesignable
@MainActor
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#>]
Skeleton
view.showSkeleton()
view.hideSkeleton()
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
NSAttributedStringto be displayed as the KPI. Will override values set tokpiItemsproperty.Declaration
Swift
@MainActor public var kpiAttributedText: NSAttributedString! { get set }