diff --git a/Tusker/Screens/Explore/TrendingHashtagsViewController.swift b/Tusker/Screens/Explore/TrendingHashtagsViewController.swift index 6de05977..6e5f8c14 100644 --- a/Tusker/Screens/Explore/TrendingHashtagsViewController.swift +++ b/Tusker/Screens/Explore/TrendingHashtagsViewController.swift @@ -11,11 +11,11 @@ import Pachyderm import WebURLFoundationExtras import Combine -class TrendingHashtagsViewController: UIViewController { +class TrendingHashtagsViewController: UIViewController, CollectionViewController { private let mastodonController: MastodonController - private var collectionView: UICollectionView! + private(set) var collectionView: UICollectionView! private var dataSource: UICollectionViewDiffableDataSource! private var state = State.unloaded @@ -84,6 +84,8 @@ class TrendingHashtagsViewController: UIViewController { override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) + clearSelectionOnAppear(animated: animated) + Task { await loadInitial() }