UIFont
public extension UIFont
no:doc
-
Returns font with textStyle and weight.
Declaration
Swift
static func vgsPreferredFont(forTextStyle style: TextStyle, weight: Weight? = nil, maximumPointSize: CGFloat? = nil) -> UIFont
Parameters
style
TextStyle
object, font text style.weight
Weight
object, font weight.maximumPointSize
CGFloat?
object, max font size in points, default isnil
.Return Value
UIFont
object.