it seems I have created a simple Image view with the following constraints:
Align Center X to: Superview
Align Center Y to: Superview
Top Space to: Top Layout Guide
Bottom Space to: Bottom Layout Guide
And I have the Width and Horizontal Position Are Ambiguous message. I am trying to correct it, but I am not sure about what is happening in the first place.
Do you have an idea?
You need to add the same constraint for left and right as you did for top and bottom.
Or set fixed width.
Remove Top Space to: Top Layout Guide and Bottom Space to: Bottom Layout Guide constraints, Set Image's Width and Height instead or (Width + Aspect ratio). Because every view needs x,y, height, width to render itself.
So You've already set X and Y using Align Center X to: Superview and Align Center Y to: Superview. So it needs specific width and height now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With