forked from shadowfacts/Tusker
Fix notifications screen not responding to tab bar/status bar scroll to top
This commit is contained in:
parent
afcec24f86
commit
06b58cfb9c
|
@ -752,3 +752,16 @@ extension NotificationsCollectionViewController: StatusCollectionViewCellDelegat
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extension NotificationsCollectionViewController: TabBarScrollableViewController {
|
||||||
|
func tabBarScrollToTop() {
|
||||||
|
collectionView.scrollToTop()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
extension NotificationsCollectionViewController: StatusBarTappableViewController {
|
||||||
|
func handleStatusBarTapped(xPosition: CGFloat) -> StatusBarTapActionResult {
|
||||||
|
collectionView.scrollToTop()
|
||||||
|
return .stop
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue