We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95909d6 commit d2f7a79Copy full SHA for d2f7a79
README.MD
@@ -34,8 +34,16 @@ layout2.aspectRatio = 1
34
layout2.width = 20%
35
layout2.margin = 8
36
37
-layout.set(children: [layout2])
+let layout3 = FlexLayout()
38
+layout3.set(layout: [
39
+ "aspect-ratio": "1",
40
+ "width": "50%",
41
+ "margin": "8"
42
+ ]
43
+)
44
+
45
+layout.set(children: [layout2, layout3])
46
_ = layout.intrinsicSize
-print(layout.frame, layout.frame)
47
+print(layout.frame, layout2.frame, layout3.frame)
48
```
49
0 commit comments