uistackview - XCode: Stack view and constraints -
why need contraints on elements live inside stack view? not idea of stack view stack elements automatically making need of explicit measures added?
well said. stackview
height , width content size
. sometime cannot how content size
ui element
has.
for example if have imageview
inside stackview
, assign image
@ runtime. stackview
grow imageview
. question how much. depends on size of image. there can feel undesired results. fix stackview
size using predefined constraints
.
also, stackview
need constraints
position. position stackview
inside view of viewcontroller
. need constraints
positioning our stackview
.
Comments
Post a Comment