How to remove extra empty cells in TableViewController, iOS – Swift December 9, 2022 by Tarik in your viewDidLoad() function add this line of code: tableView.tableFooterView = UIView()