Swift, Auto Resize Custom Table View Cells
In my app, I have a table view with an image, label and text view in each cell. I would like to be able to auto-resize the cells depending on the amount of content in the text view. (The text view is the lower most text.) So far, I have added the correct constraints; leading, trailing, top and bottom to the text view and have disabled scrolling and editing. In my tableViewController.swift file, I have written this code: override func viewWillAppear(_ animated: Bool) { tableView.estimatedRowHeight = 100 tableView.rowHeight = UITableViewAutomaticDimension } However, this is not working as when I