I have setup UICollection View Cell with two UI Label, first for heading & second for content.
But I am trying to have multiline text inside UILabel for content. But nothing is working.
I am using the following code at "cellForItemAt indexPath". but it fails to work or apply.
cell.descriptionUILabel.numberOfLines = 0
cell.descriptionUILabel.textAlignment = .left
cell.descriptionUILabel.sizeToFit()
cell.descriptionUILabel.lineBreakMode = .byWordWrapping
cell.descriptionUILabel.baselineAdjustment = .alignCenters
cell.descriptionUILabel.contentMode = .topLeft