[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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user