// // AutoAdjustableTable.swift // LMS // // Created by Suraj Kumar Mandal on 06/02/23. // import Foundation import UIKit final class AutoAdjustableTable: UITableView { override var contentSize:CGSize { didSet { invalidateIntrinsicContentSize() } } override var intrinsicContentSize: CGSize { layoutIfNeeded() return CGSize(width: UIView.noIntrinsicMetric, height: contentSize.height) } }