MUStat

@IBDesignable
open class MUStat : MUNibView

Class that provide a value with unit, and a detail string below

A view with customizable options as:

  • A separator on the most left.
  • An image on the right of the separator or on the most left if no separator.
  • A block of labels with:
    • A value label and an unit label.
    • A description label.
  • The object that acts as the delegate of the avatar.

    Declaration

    Swift

    @IBOutlet
    public weak var delegate: MUStatDelegate?
  • Show / hide separator.

    Declaration

    Swift

    @IBInspectable
    open dynamic var showSeparator: Bool { get set }
  • Specifies the separator color.

    Declaration

    Swift

    @IBInspectable
    open dynamic var separatorColor: UIColor { get set }
  • Specifies the separator color.

    Declaration

    Swift

    @IBInspectable
    open dynamic var separatorWidth: CGFloat { get set }
  • Specifies the left space if separator is shown.

    Declaration

    Swift

    @IBInspectable
    open dynamic var separatorLeftPadding: CGFloat { get set }
  • Specifies the stat’s icon.

    Declaration

    Swift

    @IBInspectable
    open dynamic var icon: UIImage? { get set }
  • Specifies the left space if icon is shown.

    Declaration

    Swift

    @IBInspectable
    open dynamic var iconWidth: CGFloat { get set }
  • Specifies the left space if icon is shown.

    Declaration

    Swift

    @IBInspectable
    open dynamic var iconLeftPadding: CGFloat { get set }
  • Defines the value text.

    Declaration

    Swift

    @IBInspectable
    open dynamic var value: Double { get set }
  • Specifies the value label font.

    Declaration

    Swift

    @objc
    open dynamic var valueFont: UIFont { get set }
  • Specifies the value label text color.

    Declaration

    Swift

    @IBInspectable
    open dynamic var valueColor: UIColor { get set }
  • Specifies the value label format.

    Declaration

    Swift

    @IBInspectable
    open dynamic var format: String { get set }
  • Specifies the detail label text.

    Declaration

    Swift

    @IBInspectable
    open dynamic var detail: String { get set }
  • Specifies the detail label font.

    Declaration

    Swift

    @objc
    open dynamic var detailFont: UIFont { get set }
  • Specifies the detail label text color.

    Declaration

    Swift

    @IBInspectable
    open dynamic var detailColor: UIColor { get set }
  • Specifies the value unit text.

    Declaration

    Swift

    @IBInspectable
    open dynamic var unit: String { get set }
  • Specifies the unit label font.

    Declaration

    Swift

    @objc
    open dynamic var unitFont: UIFont { get set }
  • Specifies the unit label text color.

    Declaration

    Swift

    @IBInspectable
    open dynamic var unitColor: UIColor { get set }
  • Define the top and bottom padding of the labels.

    Declaration

    Swift

    @IBInspectable
    open dynamic var verticalPadding: CGFloat { get set }