Answers for "can you swipe left to delete on table view x code"

0

swipe to delete xcode

override func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) {
        
        if editingStyle == .delete {
            terms.remove(at: indexPath.row)
            tableView.deleteRows(at: [indexPath], with: .bottom)
        }
    }
    // terms is array var
Posted by: Guest on April-11-2020

Code answers related to "can you swipe left to delete on table view x code"

Code answers related to "Swift"

Browse Popular Code Answers by Language