How to make auto-resize work on iPhone X and 4S

Hi I am starting new on swift and have been walking my way through constraints and auto resize. I am having one slight issue while auto resizing. See below how my UI buttons stack up.

 

iPhone 8 Plus, iPhone 8, iPhone SE all look same and aligned perfect

https://snag.gy/GAVB2M.jpg

 

iPhone X – Image appears stretched

https://snag.gy/vImARk.jpg

 

iphone 4S – Image appears compressed inward

https://snag.gy/sSnYFk.jpg

 

All I did was for each button, I set autoresizing as seen below

https://snag.gy/Mq7uhx.jpg

 

Is there a way I can make iPhone X maintain same image aspect ratios?

 

Thanks

Powered by WPeMatico

About

You may also like...

Comments are closed.