Search code examples
iosswiftxcodeautolayouttableview

Correctly wrap text in tableview cell


I want to ask if anybody have solution for this kind of problem:

I have Tableview with dynamic cells, they have two labels and dynamic height. When the data is set to label, text in label is splitting in to new rows in the middle of word. See the picture

  1. I tried set line breaking to word wrapping

(settings of label)

  1. In other tableviews with dynamic cell height I have no problem with splitting text
  2. Labels have constraints to top, bottom, left and right of content view
  3. Newest Xcode version and iOS > 13.0

Thanks for any help!


Solution

  • I download your demo and tried the same settings in English Language and it worked perfectly , so it seems a bug for me in Xcode for me ..