MUStatData

public struct MUStatData

Struct that represent stat data

  • Defines the icon

    Declaration

    Swift

    public let image: UIImage?
  • Defines the format

    Declaration

    Swift

    public let format: String
  • Defines the value

    Declaration

    Swift

    public let value: Double
  • Defines the unit

    Declaration

    Swift

    public let unit: String
  • Defines the detail

    Declaration

    Swift

    public let detail: String
  • Defines the show / hide separator

    Declaration

    Swift

    public let showSeparator: Bool
  • Init a stat data with default values

    Declaration

    Swift

    public init(image: UIImage? = nil,
                format: String = "%.f",
                value: Double,
                unit: String,
                detail: String,
                showSeparator: Bool = true)