fix: tableView can't scrolling to the top

This commit is contained in:
sunxiaojian 2021-03-16 15:37:21 +08:00
parent 27307ed4dd
commit f7b4b5993a
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ extension HomeTimelineNavigationBarState {
@objc func newPostsNewDidPressed(_ sender: UITapGestureRecognizer) {
if newTopContent.value == true {
viewController?.tableView.scroll(to: .top, animated: true)
viewController?.tableView.scrollToRow(at: IndexPath(row: 0, section: 0), at: .top, animated: true)
}
}
}