I was curious if it is possible when I can add a restriction to the nearest visible (unclosed) neighbor.
Imagine I have 3 UIViews:
[view1] - [view2] - [View3]
Suppose there are currently 10 pixels between each views.
I want view1 to be 10px from the nearest visible neighbor. So when I hide view2, view3 will move closer, so there will only be 10px between view1 and view3.
Is this possible with AutoLayout restrictions?
source share