title: How to delete section of UITableView on click of view in swift3
body: <p>I want to remove a table cell on click of view which is on cell in swift3.</p>
  
  <p>Following function is called on click of View and remove method is used to delete table section.But this solution is not working.    </p>
  
  <pre><code>func remove(sender: UITapGestureRecognizer)
          {
              let indexView = sender.view
              let index = indexView?.tag
  
              self.removeAddresses(position: index!)
          }
  
      func remove(position: Int)  
      {  
          tableView.deleteSections(IndexSet(index: position,with. automatic))  
          tableView.reloadData()
      }
  </code></pre>