title: How to adjust the indent of the header of a TableView in Swift?
body: <p>I know how to set the header text and style it, but for the life of me, I cannot find anything that explains how to adjust the indent of the text. This is what I tried:</p>
  
  <pre><code>func tableView(_ tableView: UITableView, willDisplayHeaderView view: UIView, forSection section: Int){
      let header = view as! UITableViewHeaderFooterView
      header.textLabel?.translatesAutoresizingMaskIntoConstraints = false
      header.textLabel?.leftAnchor.constraint(equalTo: header.leftAnchor, constant: 15).isActive = true
  }
  </code></pre>
  
  <p>The code above (and every variation I've tried) results in the error:</p>
  
  <blockquote>
    <p>Unable to activate constraints because they have no common ancestor.</p>
  </blockquote>
  
  <p>Which causes me to say to my computer, <em>"If <code>header.textLabel</code> got me to the <code>UILabel</code>, and <code>header</code> is indeed a <code>UITableViewHeaderFooterView</code>, I reckon that you oughta know that one is the ancestor of another!"</em></p>