Reload search-results when entering the screen (IOS-196)
This commit is contained in:
parent
315d15b256
commit
7d8af4ef35
|
@ -48,6 +48,11 @@ extension SearchHistoryViewController {
|
||||||
searchHistorySectionHeaderCollectionReusableViewDelegate: self
|
searchHistorySectionHeaderCollectionReusableViewDelegate: self
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override func viewWillAppear(_ animated: Bool) {
|
||||||
|
let userID = authContext.mastodonAuthenticationBox.userID
|
||||||
|
viewModel.items = (try? FileManager.default.searchItems(forUser: userID)) ?? []
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - UICollectionViewDelegate
|
// MARK: - UICollectionViewDelegate
|
||||||
|
|
Loading…
Reference in New Issue