title: When should translatesAutoresizingMaskIntoConstraints be set to true?
body: <p>I've read the <a href="https://developer.apple.com/documentation/uikit/uiview/1622572-translatesautoresizingmaskintoco" rel="noreferrer">documentation</a>. But I'm still not sure when I need to not set it to <code>false</code>. In the code below if I set it to <code>false</code> I won't see the header at all. If I leave it as <code>true</code>, then everything is fine.</p>
  
  <p>The following in  View debug hierarchy will give a warning "<strong>width</strong> and <strong>position</strong> are ambiguous". </p>
  
  <pre><code>func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -&gt; UIView? {
  
      let header = UIView()
      header.translatesAutoresizingMaskIntoConstraints = false
      header.backgroundColor = .orange
      header.heightAnchor.constraint(equalToConstant: 10).isActive = true
  
      return header
  }
  </code></pre>
  
  <p>I thought whenever I need to modify anything in the code I would have to set <code>translatesAutoresizingMaskIntoConstraints</code> to <code>false</code>.</p>
  
  <p>Perhaps it's more correct to say if you need to remove all its constraints then set it to <code>false</code> and then add what you like, and in that case you would need to add constraints for all 4 sides.</p>
  
  <p>However, if you need to just keep what the system provides to you, in this case that would be the tableView managing its position and width then leave to <code>true</code>.</p>
  
  <p>Is that right?</p>