title: Swift 5 - UIButtons Side by side in tableView footer with original separator line
body: <p>I am trying to add <strong>two buttons</strong> programmatically side by side (on the bottom left) in the <strong>tableView footer.</strong></p>
  <p>The issue that I am having is that I have to manually draw the separator line when defining the tableView footer because the separator line disappears.</p>
  <p>How can I simply <strong>add two buttons</strong> to the bottom left of the tableView footer <strong>without</strong> loosing the original separator line?</p>
  <pre><code>var terms_button = UIButton()
  var policy_button = UIButton()
  
  func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -&gt; UIView? {
          
          //terms button
          terms_button = UIButton(frame: CGRect(x: 70, y: 0, width: 100, height: 50))
          terms_button.setTitle(&quot;Terms&quot;, for: .normal)
          terms_button.setTitleColor(UIColor.black, for: .normal)
          terms_button.titleLabel?.font = UIFont.roboto(size: 12, weight: .medium)
          terms_button.titleLabel?.alpha = 0.38
          terms_button.addTarget(self,action: #selector(didTapTermsButton),for: .touchUpInside)
          
          //policy button
          policy_button = UIButton(frame: CGRect(x: 0, y: 0, width: 100, height: 50))
          policy_button.setTitle(&quot;Privacy Policy&quot;, for: .normal)
          policy_button.setTitleColor(UIColor.black, for: .normal)
          policy_button.titleLabel?.font = UIFont.roboto(size: 12, weight: .medium)
          policy_button.titleLabel?.alpha = 0.38
          policy_button.addTarget(self,action: #selector(didTapPolicyButton),for: .touchUpInside)
  
          let result = UIView()
  
              // recreate insets from existing ones in the table view
              let insets = tableView.separatorInset
              let width = tableView.bounds.width - insets.left - insets.right
              let sepFrame = CGRect(x: insets.left, y: -0.5, width: width, height: 0.5)
  
              // create layer with separator, setting color
              let sep = CALayer()
              sep.frame = sepFrame
              sep.backgroundColor = tableView.separatorColor?.cgColor
              result.layer.addSublayer(sep)
              result.addSubview(policy_button)
              result.addSubview(terms_button)
  
              return result
      }
  </code></pre>