Hug, Fill or Fixed
Pick the sizing of each layer. Then stretch the frame and see if it holds.
Dashed lines = the target
Academy
Learn the idea first
Lesson 3 of the free Auto layout course explains Hug, Fill and Fixed in five minutes, with the same layers you see here.
Read the lesson