Skip to content

Commit c2af10b

Browse files
author
Baris Sencan
committed
Document layout guide properties
1 parent 6622982 commit c2af10b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ Just `import ManualLayout` in your code and use the methods and properties provi
3131

3232
#API Cheat Sheet
3333

34-
Properties provide a simple layout API while methods provide a more powerful one.
35-
3634
###CALayer/UIView Properties
3735

3836
```swift
@@ -64,6 +62,13 @@ The difference between alternate edges and normal edges require a bit of explain
6462

6563
So basically, *setting a normal edge's position drags the whole view along with that edge but setting an alternative edge's position drags just that edge*. And don't worry if you, for example, try to drag a left edge past its view's right edge. Edge swapping is done automatically so you don't have to worry about.
6664

65+
###UIViewController Properties
66+
67+
```swift
68+
var top: CGFloat // Top layout guide y coordinate. Read-only.
69+
var bottom: CGFloat // Bottom layout guide y coordinate. Read-only.
70+
```
71+
6772
###CALayer/UIView Methods
6873

6974
Replace the word "layer" with "view" for the UIView methods.

0 commit comments

Comments
 (0)