Closed kioqq closed 7 years ago
hey @ki0k1
I've had some similar challenges and couldn't work out the best LayoutKit way to do it. Hopefully someone else can offer a better solution.
However the way I achieved this was to simply create a subview where necessary.
In your example I would have 1 and 2 in the same view (add 2 as a sub layout to 1), then add a basic UIView and add 3 to that.
There's definitely a need for an overlay layout.
You can build one yourself, Issue #90 actually has a sample project that happens to include an OverlayLayout.swift, which might help as a starting example.
A poor workaround might be to add a zero-size layout in that corner and add to it a sublayout that extends outside of its bounds. Whether this would work probably depends on whether Layout 3 has a fixed static size.
I can take this on!
Here’s the PR for OverlayLayout https://github.com/linkedin/LayoutKit/pull/127 @nicksnyder @staguer @jingwei-huang1
I wonder why I can't assign this issue to @dgattey
Available in latest!
Thanks!
Hello guys, i don't understand how make layout in my project like on picture:
2 and 3 index is LabelLayout
Please help :/