title: How to get height of tabBar on iPhone X
body: <p>I add <code>ViewController</code> above the <code>tabBar</code> like this</p>
  
  <pre><code> cardViewController = storyboard?.instantiateViewController(withIdentifier: "CardViewController") as? CardViewController
      addChildViewController(cardViewController)
      cardViewController.didMove(toParentViewController: self)
  
      view.addSubview(cardViewController.view)
  
      cardViewController.view.frame = CGRect(x: 0, y: view.frame.height - cardHandlAreaHight - tabBarHight,
                                             width: view.bounds.width, height: cardHight)
  
      cardViewController.view.clipsToBounds = true
  </code></pre>
  
  <p>the size of tabBar i get like this:</p>
  
  <pre><code>tabBarHight = tabBarController?.tabBar.frame.size.height
  </code></pre>
  
  <p>This is works for all iPhones but not for iPhone X
  how to fix this moment ?</p>
  
  <p><a href="https://i.stack.imgur.com/1QEPb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1QEPb.png" alt="enter image description here"></a></p>