How does swift remove horizontal lines in redundant empty cells in tableview

Time:2021-4-2

How does swift remove horizontal lines in redundant empty cells in tableview

in useUITableViewControllerThe redundant empty cells will display many horizontal lines by default.
How to remove it?
tofooterHeightJust reverse a minimum

override func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
    return 0.001
}

result

How does swift remove horizontal lines in redundant empty cells in tableview