Skip to content

Commit 9ad9e07

Browse files
author
Baris Sencan
committed
Update simple example for 0.2.1
1 parent 7bdb608 commit 9ad9e07

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "isair/ManualLayout" "0.2.0"
1+
github "isair/ManualLayout" "0.2.1"

Examples/SimpleExample/SimpleExample/ExampleViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ internal final class ExampleViewController: UIViewController {
3939

4040
override func viewWillLayoutSubviews() {
4141
titleLabel.sizeToFit()
42-
titleLabel.top = 40
42+
titleLabel.top = top + 20
4343
titleLabel.centerX = view.centerX
4444
subtitleLabel.sizeToFit()
4545
subtitleLabel.top = titleLabel.bottom + 8
4646
subtitleLabel.centerX = view.centerX
4747
yinView.top = view.height / 2
4848
yinView.right2 = view.width
49-
yinView.bottom2 = view.height
49+
yinView.bottom2 = bottom
5050
}
5151

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

0 commit comments

Comments
 (0)