ios - How do I set a top layout constraint for a stack view that is embedded in another stack view? -
i want set vertical gap of 5px
between give
label , top of givelabelstack
view. when set using layout constraints, error; see below. stack view automatically adds constraint of give.top = givelabelstack.top
. in addition, can't select delete , remove constraint.
on image, can't select give.top = givelabelstack.top
remove.
does how can achieve this?
thanks
put label inside own vertical stack view (which inside horizontal givelabelstack
). set vertical stack view's top layout margin 5.
before:
after:
here's set stack view's layout margins:
Comments
Post a Comment