FUIKPIIconItem
open class FUIKPIIconItem : FUIKPIViewItem
The FUIKPIIconItem is an UIImageView subclass, which conforms to FUIKPIViewItem protocol for representing a 32px x 32px icon being displayed in the FUIKPIView.
-
Initialize the
FUIKPIIconItemwith image and image size.Declaration
Swift
public convenience init(_ icon: UIImage, _ iconSize: CGSize? = CGSize(width: 32, height: 32))Parameters
iconImage to display.
iconSizeSize for the image.
-
A dictionary containing the attributes to set from developers
Declaration
Swift
public var attributes: [NSAttributedStringKey : Any] -
Returns the
FUIKPIViewItemStyleenum value forFUIKPIIconItemDeclaration
Swift
open var style: FUIKPIViewItemStyle { get } -
For setting the size of the icon. The default is 32px x 32px.
Declaration
Swift
public var iconSize: CGSize? -
Stylized string to be displayed as a KPI Metric Icon
Declaration
Swift
public var attributedString: NSAttributedString { get }