Fix it so that we aren't scrolling and selecting using the same animation.

This commit is contained in:
Maurice Parker 2020-01-27 22:10:18 -07:00
parent 38e0a86881
commit 415fb3ab56

View File

@ -18,7 +18,7 @@ extension UITableView {
if let visibleIndexPaths = indexPathsForRows(in: safeAreaLayoutGuide.layoutFrame) {
if !(visibleIndexPaths.contains(indexPath) && cellCompletelyVisable(indexPath)) {
selectRow(at: indexPath, animated: animations.contains(.scroll), scrollPosition: .middle)
scrollToRow(at: indexPath, at: .middle, animated: animations.contains(.scroll))
}
}
}