In my app I have a UISearchBar under UINavigationBar so it is always visible to user. In that case I had to set contentInset with extr
UISearchBar
UINavigationBar
contentInset
Try setting tableFooterView tableView.tableFooterView = UIView(frame: CGRect(x: 0, y: 0, width: 0, height: CGFloat.leastNonzeroMagnitude))