Skip to content

Commit c10c10f

Browse files
authored
Update README.md
1 parent f1a398a commit c10c10f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

+22
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,28 @@ Let's make some constraints like this:
6666
view2.visualLayout(.H(view1-80-view2-15-|), .V(|-40-view2))
6767
```
6868

69+
- In Addition
70+
| : superView
71+
\- : space
72+
~ : priority
73+
Use them like those ways:
74+
75+
```swift
76+
view.xLayout.leading(==(contentView.leading*0.7 + 20) ~ 210)
77+
.trailing(<=(*0.6-50))
78+
.bottom(>=(contentView.bottom - 20))
79+
.top(contentView.top*0.8)
80+
.width(200)
81+
82+
view.leading == (contentView.leading*0.7 + 20) ~ 210
83+
view.trailing <= *0.6-50
84+
view.bottom >= contentView.bottom - 20
85+
view.top == contentView.top*0.8
86+
view.width == 200
87+
88+
view.visualLayout(.H(|-10-viewT-(*0.9 + 20)-|), .V(|-viewT-view))
89+
```
90+
6991
## License
7092

7193
XLayout is released under the MIT license. See LICENSE for details.

0 commit comments

Comments
 (0)