Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 543fef8

Browse files
完善lbl
1 parent 9dbb24d commit 543fef8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Sources/ZYCommonUtil/UIView+Create.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ public extension UIView {
3232
}
3333

3434
public extension UILabel {
35+
36+
@discardableResult
37+
static func lbl(s : String, fon: CGFloat, cor: String) -> UILabel {
38+
let lbl = UILabel()
39+
return lbl.txt(s: s, fon: fon, cor: cor)
40+
}
41+
3542
@discardableResult
3643
func txt(s: String) -> Self {
3744
text = s

0 commit comments

Comments
 (0)