VGSPlaceholderLabelStyle
public struct VGSPlaceholderLabelStyle
Holds placeholder styles.
-
Color. Default is gray with 70% opacity.
Declaration
Swift
public var color: UIColor
-
Font.
Declaration
Swift
public var font: UIFont?
-
Indicates whether placeholder should automatically update its font when the device’s
UIContentSizeCategory
is changed. It only works automatically with dynamic fontsDeclaration
Swift
public var adjustsFontForContentSizeCategory: Bool
-
Number of lines, default is
1
.Declaration
Swift
public var numberOfLines: Int
-
Text alignment.
Declaration
Swift
public var textAlignment: NSTextAlignment?
-
Character spacing. Default is
0
.Declaration
Swift
public var characterSpacing: CGFloat
-
Minimum text line height. Default is
0
.Declaration
Swift
public var textMinLineHeight: CGFloat
-
Line break mode.
Declaration
Swift
public var lineBreakMode: NSLineBreakMode?