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
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,7 +146,7 @@ Another possible solution using other PinLayout's methods (more details later):
146
146
147
147
<br/>
148
148
149
-
### Layout directly on superview’s edges
149
+
### Position view directly on superview’s edges
150
150
151
151
PinLayout also has shorter version that pins a view’s edge **directly** on its superview's corresponding edge.
152
152
@@ -224,7 +224,7 @@ Following methods position the corresponding view anchor on another view’s anc
224
224
*`bottomCenter(to anchor: Anchor)`
225
225
*`bottomRight(to anchor: Anchor)`
226
226
227
-
NOTE: These methods can also pin a view’s anchor to another view that is not a direct sibling. It works with any views that have at some point the same ancestor.
227
+
:pushpin: These methods can pin a view’s anchor to any other view's anchor, even if don't have the same direct superview! It works with any views that have at some point the same ancestor.
228
228
229
229
###### Usage examples:
230
230
```javascript
@@ -322,6 +322,8 @@ PinLayout has methods to attach a UIView's edge (top, left, bottom or right edge
322
322
*`bottom(to edge: VerticalEdge)`
323
323
*`right(to: edge: HorizontalEdge)`
324
324
325
+
:pushpin: These methods can pin a view’s edge to any other view's edge, even if don't have the same direct superview! It works with any views that have at some point the same ancestor.
326
+
325
327
###### Usage examples:
326
328
```javascript
327
329
view.pin.left(to:view1.edge.right)
@@ -359,6 +361,8 @@ Position the view left of the specified view. This method is similar to pinning
359
361
*`right(of UIView)`
360
362
Position the view right of the specified view. This method is similar to pinning the view’s left edge.
361
363
364
+
:pushpin: These methods can pin a view’s relative to any views, even if don't have the same direct superview! It works with any views that have at some point the same ancestor.
0 commit comments