- Remove dividing lines from all cells
tableView.separatorStyle = .none
- Remove the dividing line of the specified cell
cell.separatorInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: cell.bounds.size.width)
Reference blog:
iOS-24-UITableView removes the dividing line