From 06b58cfb9c34e313b4c507409be0a4157e6fa3d1 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Mon, 1 Apr 2024 09:45:22 -0400 Subject: [PATCH] Fix notifications screen not responding to tab bar/status bar scroll to top --- .../NotificationsCollectionViewController.swift | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Tusker/Screens/Notifications/NotificationsCollectionViewController.swift b/Tusker/Screens/Notifications/NotificationsCollectionViewController.swift index 93cbabd0..54d93899 100644 --- a/Tusker/Screens/Notifications/NotificationsCollectionViewController.swift +++ b/Tusker/Screens/Notifications/NotificationsCollectionViewController.swift @@ -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 + } +}