I have an application in which their is a screen. Which contains some UIView inside UIView.
Now the height of UIView(Parent) is Dynamic. It is adjusting according to Screen Height.
I have placed my UIView(child) inside it.
My UIView (parent) without Constraints.
Now,
I have added Following COnstraints:
Constraint to Parent View
Top , Bottom , Leading , Trailing
Constraint added to SubViews
UIView-1 : leading , trailing , top , height
UIView-2 : leading , trailing , vertical spacing (UIView 1) , height
UIView-3 : leading , trailing , vertical spacing (UIView 2) , height
UIView-4 : leading , trailing , vertical spacing (UIView 3) , height
Now I am getting this Screen:
When I change UIView 4 Constraint to :
UIView-4 : leading , trailing , vertical spacing (UIView 3) , height , Bottom
I am getting this screen:
My Parent view shrinks from 340 to 217 .
But I want to manage the vertical spacing between the views to increase or decrease. What Constraint I am missing.
Edit
I have changed the xib size to 3.5 inch and then to freeform. Now I have this much of space. How can I add spacer views?




