title: Dynamic height for tableview cell based on Stackview's height
body: <p><strong>Tableview cell not expanding based on the Stackview's height</strong>. The cell has container view for holding stack view, I'll add subviews programmatically to Stackview on <code>cellForRowAt:</code>. If no views added to the StackView, Its height should be 0. Otherwise, it should be some based on subview's height. My layout is below. </p>
  
  <p><a href="https://i.stack.imgur.com/M5lAY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/M5lAY.png" alt="enter image description here"></a></p>
  
  <p>Xib file is below. It shows the Stackview's height as zero in this layout. </p>
  
  <p><a href="https://i.stack.imgur.com/ZyG4D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZyG4D.png" alt="enter image description here"></a></p>
  
  <p>The problem is When I am adding Imageview to Stackview during <code>cellForRowAt</code>:, It gets adding but cell's height not expanding. </p>
  
  <p><strong>Note:</strong> </p>
  
  <p>It's horizontal stack view</p>