Learn how to create constraints in code.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/3201-auto-layout/lessons/7
Learn how to create constraints in code.
In the challenge, the yellow view looks has a fixed width in both cases of Portrait and Landscape
However, in the solution the width changes (and almost equal to width of the screen) depending on the device being in Portrait or Landscape !