title: UITableView automatic dimension not working: UIView-Encapsulated-Layout-Height error
body: <p>I'm trying to implement self sizing tableview cell.  I set autolayout height inside the cell but it show autolayout error.</p>
  
  <p>I set translatesAutoresizingMaskIntoConstraints = false and setting UITableView.autoDimension.</p>
  
  <p>It show autolayout error as below.</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. 
  (
      "&lt;NSLayoutConstraint:0x6000024ce9e0 DisposeSecond.MyCell:0x7f9ba7104aa0'cell'.height == 100   (active)&gt;",
      "&lt;NSLayoutConstraint:0x6000024ce800 'UIView-Encapsulated-Layout-Height' DisposeSecond.MyCell:0x7f9ba7104aa0'cell'.height == 100.333   (active)&gt;"
  )
  
  </code></pre>
  
  <p><br></p>
  
  <p>My implementation is quite simple.</p>
  
  <pre><code>
  import UIKit
  
  class MyCell: UITableViewCell {
  
      override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
          super.init(style: style, reuseIdentifier: reuseIdentifier)
  
          translatesAutoresizingMaskIntoConstraints = false
          self.heightAnchor.constraint(equalToConstant: 100).isActive = true
  
          // Set debug colors to visualize heigh
          layer.borderWidth = 2
          layer.borderColor = UIColor.blue.cgColor
      }
  
      required init?(coder: NSCoder) {
          fatalError("init(coder:) has not been implemented")
      }
  }
  
  class MyTableViewController: UITableViewController {
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
          tableView.register(MyCell.self, forCellReuseIdentifier: "cell")
      }
  
  
      // MARK: - Table view data source
  
      override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
          return 30
      }
  
  
      override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
          let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath) as! MyCell
          return cell
      }
  
      override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -&gt; CGFloat {
          // I know it is set automatically but just indeed
          return UITableView.automaticDimension
      }
  }
  
  </code></pre>