I have a _TableView with items , and I want to set automatic refresh,and I don\'t want it to scroll on refresh , lets say user scrolled 2 pages down , and the refre
_TableView
try to replace
reloadData with
reloadData
tableView.reloadRows(at: tableView!.indexPathsForVisibleRows!, with: .none),
tableView.reloadRows
at: tableView!.indexPathsForVisibleRows!, with: .none
but you should be care about no cells, if no cells, this method should cause crash.
no cells