title: Dynamic CollectionViewCell In TableViewCell Swift
body: <h2>Question:</h2>
  
  <p><strong>How To Make <code>UITableViewCell</code> Height Dynamic according the <code>UICollectionViewCell</code>?</strong></p>
  
  <h2>View Hierarchy:</h2>
  
  <blockquote>
    <p>UIViewController</p>
    
    <blockquote>
      <p>UITableView</p>
      
      <blockquote>
        <p>UITableViewCell</p>
        
        <blockquote>
          <p>UICollectionView</p>
          
          <blockquote>
            <p>UICollectionViewCell1</p>
            
            <blockquote>
              <p>Label 1</p>
            </blockquote>
            
            <p>UICollectionViewCell2</p>
            
            <blockquote>
              <p>Label 2</p>
            </blockquote>
            
            <p>UICollectionViewCell3</p>
            
            <blockquote>
              <p>Label 3</p>
            </blockquote>
            
            <p>[So on]</p>
          </blockquote>
        </blockquote>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <h2>Explanation:</h2>
  
  <p>Here <code>Label1</code>, <code>Label2</code>, <code>label 3</code> are have dynamic height and <code>numberOfRows</code> in <code>UICollectionView</code> is also dynamic. I need Height of <code>UITableViewCell</code> according to the <code>UICollectionViewCell</code>.</p>