Skip to content

Commit

Permalink
Demo fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Amaral committed Sep 19, 2016
1 parent 5cd45a1 commit 74c2f51
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Demo/IconButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ class IconButton: UIView {
super.layoutSubviews()

imageView.anchorToEdge(.top, padding: 0, width: 24, height: 24)
label.align(align: .underCentered, relativeTo: imageView, padding: 5, width: self.width, height: 15)
label.align(.underCentered, relativeTo: imageView, padding: 5, width: self.width, height: 15)
}
}
4 changes: 2 additions & 2 deletions Demo/TestViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class TestViewController: UIViewController {
super.viewWillLayoutSubviews()

anchorViewA.anchorInCorner(.topLeft, xPad: 20, yPad: 20, width: 200, height: 200)
view1.align(align: .toTheRightMatchingTop, relativeTo: anchorViewA, padding: 20, width: 100, height: 100, offset: 20)
view2.align(align: .underMatchingLeft, relativeTo: anchorViewA, padding: 20, width: 100, height: 100, offset: 20)
view1.align(.toTheRightMatchingTop, relativeTo: anchorViewA, padding: 20, width: 100, height: 100, offset: 20)
view2.align(.underMatchingLeft, relativeTo: anchorViewA, padding: 20, width: 100, height: 100, offset: 20)
}
}
4 changes: 2 additions & 2 deletions Demo/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ class ViewController: UIViewController {

// Static container for the demo.
//
containerView.fillSuperview(10, right: 10, top: 25, bottom: 10)
anchorView.anchorInCenter(200, height: 200)
containerView.fillSuperview(left: 10, right: 10, top: 25, bottom: 10)
anchorView.anchorInCenter(width: 200, height: 200)

layoutFrames()
}
Expand Down

0 comments on commit 74c2f51

Please sign in to comment.