Mastering Auto Layout - Part 12: Size Classes | Ray Wenderlich Videos

Use size classes to create universal layouts: ones that take advantage of the smallest iPhone to the largest iPad!

This is a companion discussion topic for the original entry at
1 Like

How can we calculate optimum horizontal spacing between weather-sun and stack view to ensure that none of the contents (Stackview / weather-sun) get clipped in the landscape mode? For ex. we’ve used 100 points of spacing in the landscape orientation.

Thanks in advance.

There are many ways to deal with this, based on intent. Switching images based on size class is one. Check out 6:27 in for that.