Why does the assistant previewer differs from the real view?

41 views Asked by At

See my image: https://postimg.org/image/7t1bb3hyx/ the real view is different than the view in the assistant preview... I used a stack view for the buttons. What am I doing wrong? Constrains: https://postimg.org/image/86ehdpkt9/

1

There are 1 answers

1
sargturner On BEST ANSWER

EDIT

Just saw the constraints you posted. You have two constraints for StackView.Top. Try leaving the "Top Layout Guide" one and deleting the title.bottom constraint. I think this one is overriding. If you want to specify the height of the label use the height constraint, or specify a font size.


Just a guess here but, your layout may be placed above the "Top Layout Guide". Drag your label down some and add a constraint to your label (or edit the one you have) and have it based off the top layout constraint instead of the "View". This will scoot everything down a little bit so we can have that top bar that shows the battery and such.


Label near top

enter image description here

Notice when the label is close to the top it distance is based of the view.


Label down a bit

enter code here

Now you can base your label constraint off the "Top Layout Guide"