File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,28 @@ Let's make some constraints like this:
66
66
view2.visualLayout (.H (view1- 80 - view2- 15 -| ), .V (|- 40 - view2))
67
67
```
68
68
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
+
69
91
## License
70
92
71
93
XLayout is released under the MIT license. See LICENSE for details.
You can’t perform that action at this time.
0 commit comments