title: Table view cell height based upon Dynamic height Table Height issues
body: <p><strong>Scenario -</strong>  </p>
  
  <ol>
  <li><p>TableView height is set dynamically with respect to superview’s height using aspect ratio.</p></li>
  <li><p>TableViewCell’s height is calculated based on table view’s height as :</p>
  
  <pre><code> func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -&gt; CGFloat {
           return tableView.frame.height/2
   }
  </code></pre></li>
  </ol>
  
  <p><strong>Issue -</strong> </p>
  
  <p>Table view height is not calculated properly in the delegate method initially. But properly calculated after scrolling cells.</p>
  
  <p><strong>Solutions tried:</strong> </p>
  
  <ol>
  <li>Reloading the <code>tableView</code> in <code>viewDidLayoutSubViews()</code>.</li>
  <li>calling <code>cell.layoutSubViews()</code> in <code>cellForitemAtIndexPath</code>.</li>
  </ol>
  
  <p>Any solution to achieve proper calculation for this tableView height?</p>