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 FUIKPIIconItem with image and image size.

    Declaration

    Swift

    public convenience init(_ icon: UIImage, _ iconSize: CGSize = CGSize(width: 32, height: 32))

    Parameters

    icon

    Image to display.

    iconSize

    Size for the image.

  • Returns the FUIKPIViewItemStyle enum value for FUIKPIIconItem

    Declaration

    Swift

    open var style: FUIKPIViewItemStyle { get }
  • Stylized string to be displayed as a KPI Metric Icon

    Declaration

    Swift

    public var attributedString: NSAttributedString { get }