0

I have

  1. UIImageviewUIView - The Background image
  2. UIView - being treated as a gradient layer on top of the image.

Here the constraints given for the gradient view is

  • Align top and leading to the UIImageView
  • Equal height and Width as the UIImageView

These are working perfectly on iPhone 5s, 6s but fails to work on iPhone 6s Plus. The gradient view doesnt cover the UIImageView fully. Attaching a sample image

enter image description here

P.S I already unchecked Constraint to margin in Interface Builder. Still not working. Can anyone help me with what i am missing?

Manju Basha
  • 665
  • 1
  • 9
  • 29

2 Answers2

0

Try these constraints on imageView and the other view on top of it:

enter image description here

PGDev
  • 23,751
  • 6
  • 34
  • 88
0

After loads of trial and error. I finally found the solution.

  • Removed Equal height and Width as the UIImageView
  • Align bottom and trailing to the UIImageView
Manju Basha
  • 665
  • 1
  • 9
  • 29