ViLabelConfig
public struct ViLabelConfig
Configuration for a label e.g. heading, label, price, discount price label
-
font for label
Declaration
Swift
public var font: UIFont
-
text color
Declaration
Swift
public var textColor: UIColor
-
number of lines
Declaration
Swift
public var numOfLines: Int = 1
-
whether to strike trough the text e.g. to indicate original price before discount
Declaration
Swift
public var isStrikeThrough: Bool = false
-
string format for formatting numbers such as price, discount price (Optional)
Declaration
Swift
public var numberStringFormat : String = ViTheme.sharedInstance.default_price_format
-
Constructor
- Parameters:
- font: font to use. If not provided, will use default font in ViTheme
- text_color: text color. If not provided, use default text color in ViTheme
- num_of_lines: number of lines. Default to 1
- is_strike_through: whether to strike through the text
- numberStringFormat: number format for prices labels
Declaration
Parameters
font
font to use. If not provided, will use default font in ViTheme
text
_color: text color. If not provided, use default text color in ViTheme
num
_of_lines: number of lines. Default to 1
is
_strike_through: whether to strike through the text
numberStringFormat
number format for prices labels
- Parameters:
-
default label config
Declaration
Swift
public static var default_label_config = ViLabelConfig(font: ViTheme.sharedInstance.default_bold_font)
-
default heading config
Declaration
Swift
public static var default_heading_config = ViLabelConfig()
-
Undocumented
Declaration
Swift
public struct ViLabelConfig
-
Undocumented
Declaration
Swift
public struct ViLabelConfig