You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Example/KWTextStyleLabel/ViewController.swift
+12-4
Original file line number
Diff line number
Diff line change
@@ -12,14 +12,22 @@ import KWTextStyleLabel
12
12
classViewController:UIViewController{
13
13
14
14
// MARK: - IBOutlets
15
-
@IBOutlet weak vartest:KWTextStyleLabel!
15
+
@IBOutlet weak varbodyLabel:KWTextStyleLabel!
16
+
@IBOutlet weak varsubView:UIView!
16
17
17
18
// MARK: - Lifecycle
18
19
overridefunc viewDidLoad(){
19
20
super.viewDidLoad()
20
21
21
-
test.characterSpacing =3
22
-
test.lineGap =10
23
-
test.text ="Body with\nCharacter spacing: 3\nand Line spacing: 10\nLorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book."
22
+
letheadingLabel=KWTextStyleLabel(characterSpacing:5, lineGap:25, text:"Heading with Character spacing: 5 and Line spacing: 25")
bodyLabel.text ="Body with\nCharacter spacing: 3\nand Line spacing: 10\nLorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book."
@@ -59,4 +79,4 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/keepwo
59
79
60
80
## License
61
81
62
-
KWTextStyleLabel is available under the [MIT License](http://opensource.org/licenses/MIT). See the LICENSE file for more info.
82
+
KWTextStyleLabel is available under the [MIT License](http://opensource.org/licenses/MIT). See the [License](https://github.com/keepworks/KWTextStyleLabel/blob/master/LICENSE) file for more info.
0 commit comments