title: How to vertically align text in tableview header swift
body: <p>Here is what I've tried.</p>
  
  <pre><code>func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -&gt; UIView? {
      let header = view as? UITableViewHeaderFooterView
      header?.textLabel!.frame = CGRect(x: 0, y: 25, width: tableView.frame.size.width, height: 50)
      header?.textLabel?.text = "Testing"
      header?.textLabel?.textColor = UIColor.gray
      header?.textLabel?.font = UIFont(name: "Avenir-Book", size: 12)
      return header
  }
  </code></pre>
  
  <p>Still to no way to align the text vertically in the section header.</p>
  
  <p>Any ideas?</p>