title: Autolayout issue when showing the dropdown table
body: <p>In my app i want to show a dropdown table, after clicking the text field. But it is not working good.</p>
  
  <pre><code>tableViewOne.snp.updateConstraints { (make) in
  
                  let superViewOriginY: CGFloat = (textField.superview?.frame.origin.y)!
                  let textFieldMaxY: CGFloat = textField.frame.maxY
                  let navigationHeight: CGFloat = self.navigationController!.navigationBar.frame.size.height
                  let textFieldHeight = textField.frame.height
                  let tableViewOneTopPsition = superViewOriginY + textFieldMaxY + navigationHeight + textFieldHeight
  
                  make.top.equalTo(tableViewOneTopPsition)
                  make.left.equalTo(15)
                  make.right.equalTo(-15)
                  make.height.equalTo(0)
              }
              self.view.layoutIfNeeded()
              UIView .animate(withDuration: 0.4, animations: {
                  self.tableViewOne.snp.updateConstraints({ (make) -&gt; Void in
                      make.height.equalTo(170)
                  })
                  self.view.layoutIfNeeded()
              }, completion: nil)
  
  </code></pre>
  
  <p>By writting this code, it works for iphone 11 Max simulator. But for iphone 8 plus simulator there is some gap between the textfield and the table view.` In this following images there are textfields inside the stackview.</p>
  
  <p><a href="https://i.stack.imgur.com/JDUkw.jpg" rel="nofollow noreferrer">https://i.stack.imgur.com/JDUkw.jpg</a></p>
  
  <p><a href="https://i.stack.imgur.com/GkQXd.png" rel="nofollow noreferrer">https://i.stack.imgur.com/GkQXd.png</a></p>
  
  <pre><code>   First one image is the iphone 11max pro image 
     and the second one is the iphone 8 plus image
  </code></pre>
  
  <p>if i will write</p>
  
  <pre><code> make.top.equalTo(textFieldMaxY)
  </code></pre>
  
  <pre><code>the i will be 
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/fmNNe.jpg" rel="nofollow noreferrer">https://i.stack.imgur.com/fmNNe.jpg</a></p>
  
  <p>Please help me to overcome the issue.</p>