You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Can I use some priorities or attach anchor of the view to more than one view?
I have header with attaching in top of the base view, and grey view below the header. But when my base view compressed I want compress header.
And also what am I doing wrong? I should set minimum dimensions of the grey view, cos when I compress base view a lot from correct size, greyView has previous frame (I think this is cos some computed values of the greyView frame is negative).
For example (without .minWidth(.zero).minHeight(.zero)):
I would like to use .bottom() for headerView with low priority maybe.
I can use some calculations with sizeThatFits of the views, but want to solve this issue only by library with internal autoSizeThatFits of the views.
The text was updated successfully, but these errors were encountered:
Hi! Can I use some priorities or attach anchor of the view to more than one view?
I have header with attaching in top of the base view, and grey view below the header. But when my base view compressed I want compress header.
Default:
Compressed:
Code:
And also what am I doing wrong? I should set minimum dimensions of the grey view, cos when I compress base view a lot from correct size, greyView has previous frame (I think this is cos some computed values of the greyView frame is negative).
For example (without
.minWidth(.zero).minHeight(.zero))
:I would like to use
.bottom()
forheaderView
with low priority maybe.I can use some calculations with sizeThatFits of the views, but want to solve this issue only by library with internal autoSizeThatFits of the views.
The text was updated successfully, but these errors were encountered: