0

Is it possible to automatically change the height of the collection view in relation to the item size. I get the data from the backend and in that data is the configuration for the items. I can adjust the size of the item but I don't know how to change the height of the collection. I want my height to change to be the same as the size of the item (so that the item is fully visible and not cut or smaller)

meaning-matters
  • 21,929
  • 10
  • 82
  • 142
Stefan
  • 69
  • 6

1 Answers1

0

No it is manage by using uicollectionviewflowlayout delegate.

Divya Vohra
  • 117
  • 4
  • yes but with uicollectionviewflowlayout i can adjust the inside of the collection but i don't see a way to tell it to expand as much as itemSize – Stefan Sep 06 '22 at 11:43