Reply to UITableViewAlertForLayoutOutsideViewHierarchy Subclassing worked for me as well. Here is the Swift solution: class CustomTableView: UITableView { override func layoutSubviews() { if (self.window == nil) { return } super.layoutSubviews() } } UI Frameworks UIKit Mar ’21