update create label method name

This commit is contained in:
Xinlei(Ryan) Pan 2020-02-26 12:35:44 -05:00
parent e54c87becf
commit 16f49329f7

View File

@ -133,82 +133,82 @@ public typealias ActionBlock = () -> ()
//------------------------------------------------------ //------------------------------------------------------
/// Title 2XLarge /// Title 2XLarge
@objc public static func commonLabelTitle2XLarge(_ scale: Bool) -> Label { @objc public static func createLabelTitle2XLarge(_ scale: Bool) -> Label {
let label = Label.label() let label = Label.label()
label.styleTitle2XLarge(scale) label.styleTitle2XLarge(scale)
return label return label
} }
/// TitleXLarge /// TitleXLarge
@objc public static func commonLabelTitleXLarge(_ scale: Bool) -> Label { @objc public static func createLabelTitleXLarge(_ scale: Bool) -> Label {
let label = Label.label() let label = Label.label()
label.styleTitleXLarge(scale) label.styleTitleXLarge(scale)
return label return label
} }
/// BoldTitleLarge /// BoldTitleLarge
@objc public static func commonLabelBoldTitleLarge(_ scale: Bool) -> Label { @objc public static func createLabelBoldTitleLarge(_ scale: Bool) -> Label {
let label = Label.label() let label = Label.label()
label.styleBoldTitleLarge(scale) label.styleBoldTitleLarge(scale)
return label return label
} }
/// RegularTitleLarge /// RegularTitleLarge
@objc public static func commonLabelRegularTitleLarge(_ scale: Bool) -> Label { @objc public static func createLabelRegularTitleLarge(_ scale: Bool) -> Label {
let label = Label.label() let label = Label.label()
label.styleRegularTitleLarge(scale) label.styleRegularTitleLarge(scale)
return label return label
} }
/// BoldTitleMedium /// BoldTitleMedium
@objc public static func commonLabelBoldTitleMedium(_ scale: Bool) -> Label { @objc public static func createLabelBoldTitleMedium(_ scale: Bool) -> Label {
let label = Label.label() let label = Label.label()
label.styleBoldTitleMedium(scale) label.styleBoldTitleMedium(scale)
return label return label
} }
/// RegularTitleMedium /// RegularTitleMedium
@objc public static func commonLabelRegularTitleMedium(_ scale: Bool) -> Label { @objc public static func createLabelRegularTitleMedium(_ scale: Bool) -> Label {
let label = Label.label() let label = Label.label()
label.styleRegularTitleMedium(scale) label.styleRegularTitleMedium(scale)
return label return label
} }
/// BoldBodyLarge /// BoldBodyLarge
@objc public static func commonLabelBoldBodyLarge(_ scale: Bool) -> Label { @objc public static func createLabelBoldBodyLarge(_ scale: Bool) -> Label {
let label = Label.label() let label = Label.label()
label.styleBoldBodyLarge(scale) label.styleBoldBodyLarge(scale)
return label return label
} }
/// RegularBodyLarge /// RegularBodyLarge
@objc public static func commonLabelRegularBodyLarge(_ scale: Bool) -> Label { @objc public static func createLabelRegularBodyLarge(_ scale: Bool) -> Label {
let label = Label.label() let label = Label.label()
label.styleRegularBodyLarge(scale) label.styleRegularBodyLarge(scale)
return label return label
} }
/// BoldBodySmall /// BoldBodySmall
@objc public static func commonLabelBoldBodySmall(_ scale: Bool) -> Label { @objc public static func createLabelBoldBodySmall(_ scale: Bool) -> Label {
let label = Label.label() let label = Label.label()
label.styleBoldBodySmall(scale) label.styleBoldBodySmall(scale)
return label return label
} }
/// RegularBodySmall /// RegularBodySmall
@objc public static func commonLabelRegularBodySmall(_ scale: Bool) -> Label { @objc public static func createLabelRegularBodySmall(_ scale: Bool) -> Label {
let label = Label.label() let label = Label.label()
label.styleRegularBodySmall(scale) label.styleRegularBodySmall(scale)
return label return label
} }
/// BoldMicro /// BoldMicro
@objc public static func commonLabelBoldMicro(_ scale: Bool) -> Label { @objc public static func createLabelBoldMicro(_ scale: Bool) -> Label {
let label = Label.label() let label = Label.label()
label.styleBoldMicro(scale) label.styleBoldMicro(scale)
return label return label
} }
/// RegularMicro /// RegularMicro
@objc public static func commonLabelRegularMicro(_ scale: Bool) -> Label { @objc public static func createLabelRegularMicro(_ scale: Bool) -> Label {
let label = Label.label() let label = Label.label()
label.styleRegularMicro(scale) label.styleRegularMicro(scale)
return label return label