title: Programmatically creating an expanding UItableViewCell
body: <p>I have a tableviewcell that I want to expand and collapse on tap. All the examples I have found are Storyboard base and I am trying to do this programmatically. What I thought initially was to create a subview and constrain it to the content view but when I adjust the height of the cell with <code>heightForRowAt</code> it also increases the size of the content view (which makes sense). Any thoughts on how I should go about this? </p>
  
  <p>For visual reference here is what I want to happen<a href="https://i.stack.imgur.com/kslxn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kslxn.png" alt="enter image description here"></a></p>