title: How to write height for row in RxSwift?
body: <p>I want to convert the below code into <code>RxSwift</code>. And also please help me how to write button <code>Action</code> code in <code>RxSwift</code>.</p>
  
  <p><code>ReactiveCocoa</code> or <code>RxSwift</code> Which one is better to use in swift3?</p>
  
  <pre><code>func tableView(_ tableView: UITableView, numberOfRowsInSection section: 
  Int) -&gt; Int {
      return posts.count
  }
  func tableView(_ tableView: UITableView, cellForRowAt indexPath: 
  IndexPath) -&gt; UITableViewCell {
      let cell: BTSTableViewCell = self.tableView.dequeueReusableCell(withIdentifier: "BTSTableViewCellIdentifier")! as! BTSTableViewCell
  
      cell.configureWithPost(posts[indexPath.row])
      cell.delegate = self
      return cell
  
  }
  func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -&gt; CGFloat {
  
      // 259.5+ labelHeight+ bigImageHeight
  
      let postViewModel = posts[indexPath.row]
  
      //caption height
      var captionHeight = postViewModel.textDetail?.height(withConstrainedWidth: tableView.bounds.size.width - 20, font: UIFont.systemFont(ofSize: 17))
  
      captionHeight = ceil(captionHeight!)
  
      var finalCaptionHeight: CGFloat = 0.0;
  
     if postViewModel.showDetailedCaption {
          finalCaptionHeight = captionHeight!
      }
      else {
          finalCaptionHeight = min(41, captionHeight!)
      }
      return 259.5 + 
   postViewModel.getBigImageHeightFor(tableView.bounds.size.width) + 
   finalCaptionHeight
  
  }
  </code></pre>