fix: tableView can't scrolling to the top
This commit is contained in:
parent
27307ed4dd
commit
f7b4b5993a
|
@ -112,7 +112,7 @@ extension HomeTimelineNavigationBarState {
|
||||||
|
|
||||||
@objc func newPostsNewDidPressed(_ sender: UITapGestureRecognizer) {
|
@objc func newPostsNewDidPressed(_ sender: UITapGestureRecognizer) {
|
||||||
if newTopContent.value == true {
|
if newTopContent.value == true {
|
||||||
viewController?.tableView.scroll(to: .top, animated: true)
|
viewController?.tableView.scrollToRow(at: IndexPath(row: 0, section: 0), at: .top, animated: true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue