I added a UIView above a tableview to make it scrollable and have some tableviewcell below it but I can't figure out how to set "Detail Header" view's height dynamic so it fits to my content. I have a textLabel inside which increases its height because of this
All constraints inside the View are fine but somehow that UIView doesn't adjust to content and it keeps its fixed size
override func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
return detailHeader
}