title: How I can fix view height on emulator Swift xcode?
body: <p>I'm totally new in ios development and I try to build some interface. Below you can see how it looks at xcode and previews:</p>
  <p><a href="https://i.stack.imgur.com/sLAZb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sLAZb.png" alt="enter image description here" /></a></p>
  <p>And I have some problems when I run this app on emulator:</p>
  <p><a href="https://i.stack.imgur.com/RPOBT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RPOBT.png" alt="enter image description here" /></a></p>
  <p>I can't understand why it happens because as I see on preview everything have to be good. I also see such warnings in logs:</p>
  <pre><code>[LayoutConstraints] Unable to simultaneously satisfy constraints.
      Probably at least one of the constraints in the following list is one you don't want. 
      Try this: 
          (1) look at each constraint and try to figure out which you don't expect; 
          (2) find the code that added the unwanted constraint or constraints and fix it. 
      (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
  (
      &quot;&lt;NSAutoresizingMaskLayoutConstraint:0x6000017d1c70 h=--&amp; v=--&amp; UIView:0x7fca37f16ce0.height == 667   (active)&gt;&quot;,
      &quot;&lt;NSLayoutConstraint:0x6000017e3930 UIView:0x7fca37f16fc0.height == 1   (active)&gt;&quot;,
      &quot;&lt;NSLayoutConstraint:0x6000017e3a70 UIView:0x7fca37f17130.height == 56   (active)&gt;&quot;,
      &quot;&lt;NSLayoutConstraint:0x6000017e6d50 UIView:0x7fca37f17130.top == UILayoutGuide:0x600000de8c40'UIViewSafeAreaLayoutGuide'.top   (active)&gt;&quot;,
      &quot;&lt;NSLayoutConstraint:0x6000017e6e40 UIView:0x7fca37f16fc0.centerY == UIView:0x7fca37f16ce0.centerY - 272   (active)&gt;&quot;,
      &quot;&lt;NSLayoutConstraint:0x6000017e6e90 V:[UIView:0x7fca37f17130]-(5)-[UIView:0x7fca37f16fc0]   (active)&gt;&quot;,
      &quot;&lt;NSLayoutConstraint:0x6000017e3f70 'UIViewSafeAreaLayoutGuide-top' V:|-(20)-[UILayoutGuide:0x600000de8c40'UIViewSafeAreaLayoutGuide']   (active, names: '|':UIView:0x7fca37f16ce0 )&gt;&quot;
  )
  
  Will attempt to recover by breaking constraint 
  &lt;NSLayoutConstraint:0x6000017e3a70 UIView:0x7fca37f17130.height == 56   (active)&gt;
  
  Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
  The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in &lt;UIKitCore/UIView.h&gt; may also be helpful.
  </code></pre>
  <p>As I understood the problem is here:</p>
  <pre><code>&quot;&lt;NSLayoutConstraint:0x6000017e3930 UIView:0x7fca37f16fc0.height == 1   (active)&gt;&quot;,
  &quot;&lt;NSLayoutConstraint:0x6000017e3a70 UIView:0x7fca37f17130.height == 56   (active)&gt;&quot;,
  </code></pre>
  <p>what means that one view has two sizes. But I can't realize how to fix it :( I tried to add priority but it didn't help me. Maybe someone will see my error?</p>
  <h2>UPDATE</h2>
  <p>It seems that I have found problematic constraint:</p>
  <p><a href="https://i.stack.imgur.com/kvjje.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kvjje.png" alt="enter image description here" /></a></p>
  <p>when I delete it all my labels are on their normal places, but my gray view overlap system bar, it seems that when I remove safe area I remove smth like margin top. Maybe this info will help to solve this problem?</p>