title: Resize cell when click on custom button in Swift 4
body: <p>I have a view controller in which i have used table view controller in it. In my cell there is a button on which when user  click the cell size should come to 550 and when click again it should come back to its original height. I have tried bit code after searching for it but it isn't working is their any solution that can work for me?. My code is bit this,</p>
  
  <pre><code>var indexOfCellToExpand: Int!
  
  func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -&gt; CGFloat {
    if indexPath.row == indexOfCellToExpand {
      return 170 + expandedLabel.frame.height - 38
    }
    return 170
  }
  </code></pre>