title: Using auto-layout to make a perfect square
body: <p>I have a view with an imageview in it. I'd like to be able to make it so that the imageview always remains a perfect square, but I am not entirely sure how to implement this with autolayout.</p>
  
  <p>My screen looks like so currently:</p>
  
  <p><img src="https://i.stack.imgur.com/MJgmc.png" alt="enter image description here"></p>
  
  <p>The imageview is what I'd like to be square, no matter the width dimension. I understand that this may be able to be done with constraints, and I have tried, but ultimately have been unable to figure out how to achieve this. This is perhaps due to my relative inexperience with autolayout, storyboards and ios development in general</p>