Skip to content

Commit bfa1068

Browse files
author
Baris Sencan
committed
Fix example code
1 parent f19e812 commit bfa1068

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ internal final class ExampleViewController: UIViewController {
4747
string: "Hello World!",
4848
attributes: generateTextStyle())
4949
subtitleLabel.attributedText = NSAttributedString(
50-
string: "",
50+
string: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
5151
attributes: generateTextStyle(smaller: true)
5252
yinView.backgroundColor = UIColor.blackColor()
5353
}
@@ -61,6 +61,7 @@ internal final class ExampleViewController: UIViewController {
6161
view.backgroundColor = UIColor.whiteColor()
6262
view.addSubview(titleLabel)
6363
view.addSubview(subtitleLabel)
64+
view.addSubview(yinView)
6465
}
6566

6667
override func viewWillLayoutSubviews() {
@@ -71,7 +72,7 @@ internal final class ExampleViewController: UIViewController {
7172
subtitleLabel.top = titleLabel.bottom + 8
7273
subtitleLabel.centerX = view.centerX
7374
yinView.top = view.height / 2
74-
yinView.bottom2 = 0
75+
yinView.bottom2 = view.height
7576
}
7677

7778
private func generateTextStyle(smaller: Bool = false) -> [NSObject: AnyObject] {

0 commit comments

Comments
 (0)