I have a ViewController designed for iPhone SE
As you can see I also have a constraint Align Top to: Safe Area Equals 75
The question is, is it possible to change this value for iPhone 8 and iPhone 8 Plus? For example:
- SE = 75
- 8 = 85
- 8 Plus = 105
I have a ViewController designed for iPhone SE
As you can see I also have a constraint Align Top to: Safe Area Equals 75
The question is, is it possible to change this value for iPhone 8 and iPhone 8 Plus? For example:
To overcome this issue I created a small library so you don't have to write a single line of code just assign the class (NSLayoutHelper) to your constraint and you'll be able to update your constraint for all the devices differently.
For updating constraints
Output