title: Set dynamic height constraint on collectionviewcell which is in uitableviewcell based on image height
body: <p>I am trying to add custom height constraint to collection view cell which is present in uitableview cell. The height of constraint is dependent on image which needs to be fetched from url(Using sdwebimage to fetch image in collectionviewcell). Trying to to update constraint in sizeforitem in collectionviewcell. The problem i am facing because of this is that initially fixed height is getting set as per storyboard constraint and as soon as i am scrolling the height constraint is getting updated which is creating problems.</p>
  <p>Need to know following
  1)Need to know a proper way to implement this thing
  2)Where and how should i update constraint so that the tableviewcell as well as collectionviewcell will be set to exact height as of image
  3)Exactly where should i download images from sdwebimage</p>
  <p><a href="https://i.stack.imgur.com/GDh8I.png" rel="nofollow noreferrer">https://i.stack.imgur.com/brWvy.png</a></p>