[Framework] Pull to refresh in the Feed List (#13)

This PR contains the work done to implement the pull to refresh into the `FeedListViewController` view controller.

Reviewed-on: rock-n-code/app-reviews#13
Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
This commit was merged in pull request #13.
This commit is contained in:
2024-03-21 02:29:43 +00:00
committed by javier
parent d00cfceb32
commit 0b5ca9ef9f
3 changed files with 62 additions and 7 deletions
@@ -82,7 +82,10 @@ extension FeedListViewController {
topWords($0).map(TopWord.init)
}
items = reviewsAll
items = filter == .all
? reviewsAll
: reviewsFiltered[filter] ?? []
isFilterEnabled = !items.isEmpty
} catch {
// TODO: handle this error gracefully.