Compare commits
No commits in common. "b0a69526438bc2484054f9bd8d98f8fd5a4a62ef" and "afcec24f868a420f08b1457c91a25a17b55cdc76" have entirely different histories.
b0a6952643
...
afcec24f86
|
@ -11,11 +11,11 @@ import Pachyderm
|
|||
import WebURLFoundationExtras
|
||||
import Combine
|
||||
|
||||
class TrendingHashtagsViewController: UIViewController, CollectionViewController {
|
||||
class TrendingHashtagsViewController: UIViewController {
|
||||
|
||||
private let mastodonController: MastodonController
|
||||
|
||||
private(set) var collectionView: UICollectionView!
|
||||
private var collectionView: UICollectionView!
|
||||
private var dataSource: UICollectionViewDiffableDataSource<Section, Item>!
|
||||
|
||||
private var state = State.unloaded
|
||||
|
@ -84,8 +84,6 @@ class TrendingHashtagsViewController: UIViewController, CollectionViewController
|
|||
override func viewWillAppear(_ animated: Bool) {
|
||||
super.viewWillAppear(animated)
|
||||
|
||||
clearSelectionOnAppear(animated: animated)
|
||||
|
||||
Task {
|
||||
await loadInitial()
|
||||
}
|
||||
|
|
|
@ -752,16 +752,3 @@ 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