Section cell multi-line not supported
zishanj opened this issue · 3 comments
zishanj commented
For some reason the section cell does not support multi-line label with wordwrap. It always show single line. May be its not auto-adjusting the height of the cell, although I am using tableView.rowHeight = UITableViewAutomaticDimension
. Whereas child rows are auto-adjusting their height.
Is there any workaround?
okhanokbay commented
Did you try returning automatic dimension from delegate method?
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return UITableViewAutomaticDimension
}
zishanj commented
In addition to your suggestion, I have also tried heightForHeaderInSection
but no luck. Child rows are auto adjusting their height but there is some issue with Header
section.