Xcode StackView with UIImageView incorrect spacing

48 views Asked by At

My Storyboard

When it runs

Do u see the image that is down at the bottom? When I design it in storyboard, image with all above stuff is in a stackview with spacing of 8. Why the image is spaced from textfield too far away?

Do u guys know why? Thanks

1

There are 1 answers

2
Fogmeister On

It looks like you have constrained the stack view to the bottom of its super view.

Remove the constraint at the bottom and it should allow the stack view to lay out its views properly.