title: Table header view from .xib
body: <p>I have a table in which I need to add a title view. I made it in an xib file to configure as I need, but I have problems connecting this view. Tell me what I'm doing wrong!</p>
  
  <pre><code>class HeaderTableView: UITableViewHeaderFooterView {
  //I think in this class a mistake
  
      override init(reuseIdentifier: String?) {
          super.init(reuseIdentifier: reuseIdentifier)
      }
  
      required init?(coder aDecoder: NSCoder) {
          fatalError("init(coder:) has not been implemented")
      }
  
  }
  
  
  
  
   override func viewDidLoad() {
          super.viewDidLoad()
  
           let nib = UINib(nibName: "HeaderTableView", bundle: nil)
          tableView.register(nib, forHeaderFooterViewReuseIdentifier: "HeaderTableView")
      }
  
  
      func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -&gt; UIView? {
              let view = self.tableView.dequeueReusableHeaderFooterView(withIdentifier: "HeaderTableView")  as! HeaderTableView
  
              returnview
          }
  </code></pre>