0

I am building the chat app in which I am using the automatic dimensions of table view for cells but height for cell is not working properly for some cells.

enter image description here

and here is the constraints of view enter image description here

here is the screen shot of view hierarchy enter image description here

Asad Yasin
  • 93
  • 10

2 Answers2

1

You need to set contentcompressionresistance(vertical) to 1000 and contenthuggingpriority (vertical) to 1000

amar
  • 4,285
  • 8
  • 40
  • 52
0

I think you should add the greaterThanOrEqualTo constraint for the label height

Alastar
  • 1,284
  • 1
  • 8
  • 14