Grouped UITableView have small extra space on bottom on iOS 15+

Viewed 68

Grouped UITableview has an extra small space on the bottom on iOS 15+

this functions doesn't help

func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
    .leastNonzeroMagnitude
}

tableView.sectionHeaderTopPadding = .leastNonzeroMagnitude

example

Storyboard

1 Answers

You can try


func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
        return nil
    }
func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
        .leastNormalMagnitude
    }
Related