title: Horizontal StackView Spacing not working at runtime
body: <p>I'm having problems when using StackViews for laying out my views when device rotation changes. </p>
  
  <p>I get good results in storyboard.</p>
  
  <p><img src="https://i.stack.imgur.com/jk5PJ.png" alt="Horizontal StackView with Spacing"></p>
  
  <p>However it isn't working as expected at runtime; after doing rotation on simulator, search control size increments and space is gone! I even tested on a physical device.</p>
  
  <p><img src="https://i.stack.imgur.com/rd9Tw.png" alt="Horizontal StackView Spacing Gone at Runtime"></p>