Skip to content

Commit 5170a2f

Browse files
author
Luc Dion
committed
update doc
1 parent f2247f1 commit 5170a2f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,17 @@ In RTL direction position the vertical center (center.y) and the right edge.
367367
In LTR direction position the vertical center (center.y) and the right edge.
368368
In RTL direction position the vertical center (center.y) and the left edge.
369369

370+
371+
###### Usage Examples:
372+
373+
```swift
374+
// Position a view at the top left corner with a top and left margin of 10 pixels
375+
view.pin.topLeft(10)
376+
377+
// Position the 4 edges with a margin of 10 pixels.
378+
view.pin.topLeft(10).bottomCenter(10)
379+
```
380+
370381
<br/>
371382

372383
<a name="relative_edges_layout"></a>

0 commit comments

Comments
 (0)