I have a UITableView, if I scroll the contents a bit and then call reloadData , a scroll animation appears in the table when the data is reloaded.

table setup in viewDidLoad :
func setupTableView() { tableView.register(UINib(nibName: "AnswerCell", bundle: nil), forCellReuseIdentifier: "AnswerCell") tableView.register(UINib(nibName: "QuizDescription", bundle: nil), forCellReuseIdentifier: "QuizDescription") tableView.register(UINib(nibName: "QuestionNumberCell", bundle: nil), forCellReuseIdentifier: "QuestionNumberCell") tableView.tableFooterView = UIView() tableView.estimatedRowHeight = 135 tableView.rowHeight = UITableViewAutomaticDimension tableView.delegate = self tableView.dataSource = self }
When the submit button is pressed, tableView.reloadData() called. Any ideas why this animation is happening? What can I do to stop him?
ios uitableview swift
Kex
source share