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: README.md
+28-30Lines changed: 28 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,16 @@ Just `import ManualLayout` in your code and use the methods and properties provi
41
41
42
42
#API Cheat Sheet
43
43
44
+
###Smart Assign Operator
45
+
46
+
The smart assign operator `=~` has only one job; to make your life easier.
47
+
48
+
```swift
49
+
someView.origin=~ (0, 20)
50
+
anotherView.size=~ (100, 100)
51
+
yetAnotherView.frame=~ (0, 120, view.width, 100)
52
+
```
53
+
44
54
###CALayer/UIView Properties
45
55
46
56
```swift
@@ -72,6 +82,24 @@ The difference between alternate edges and normal edges require a bit of explain
72
82
73
83
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.
74
84
85
+
###UIView Methods
86
+
87
+
Just one method with two variants for now, and those are used for easy size calculations.
0 commit comments