-3

I have a View like shown in the image. Leading and trailing distance is increasing when showing view on different screens. How do I make it look good on every screen by using constraints.

enter image description here

bhupinder
  • 315
  • 1
  • 6
  • 23

2 Answers2

2

You can use UIStackView (Horizontal) with distribution Equally , here is a run on iPhone

enter image description here

Also with iPad

enter image description here

Shehata Gamal
  • 98,760
  • 8
  • 65
  • 87
0

Add the following constraints

  1. Assign equal width from image1 to image2.
  2. Assign horizontal spacing between both image.
  3. Assign leading space from image1 to its superview.
  4. Assign trailing space from image2 to its superview.
  5. Assign top space to both the buttons.

Then do this same steps for image3 and image4

Rashed
  • 2,349
  • 11
  • 26