Why won't my background image expand based on orientation or screen size?


Just got through Lesson 2 ( Auto Layout Tutorial (2020) - Lesson 2). And when I change the orientation or to an iPad or very different phone, the background image will not reset. I don’t think I missed anything in the tutorial and I went through that section 3 times. Am pretty sure I set all the constraints properly and even redid them multiple times.

Everything else rotates and readjusts, just not the background image. Below is a screenshot to better illustrate.

Screen Shot 2020-06-16 at 12.21.53 AM

If anyone can think of what I’m missing I’d so much appreciate it.


In your storyboard, have a look at the settings for that background imageview and make sure that the View settings “Content Mode” is set to Aspect Fill.

Thanks for that. Not sure how I missed that. Well at such small print “fit” and “fill” are easy to mix up. Loving your lessons btw