aboutsummaryrefslogtreecommitdiff
path: root/foray/Scenes
diff options
context:
space:
mode:
authorNicholas Tay <nick@windblume.net>2022-03-25 09:52:06 +1100
committerNicholas Tay <nick@windblume.net>2022-03-25 09:52:06 +1100
commit07a6eb8325d3b67d998003d3fe5ab34e1a72f106 (patch)
treed0399896aa38f7deffe5e011e6dd4bf881b25b99 /foray/Scenes
parentfe60f99848498a932d9113f8e516700a836dd1cd (diff)
downloadforayios-07a6eb8325d3b67d998003d3fe5ab34e1a72f106.tar.gz
forayios-07a6eb8325d3b67d998003d3fe5ab34e1a72f106.tar.bz2
forayios-07a6eb8325d3b67d998003d3fe5ab34e1a72f106.zip
getData -> fetch, try threading, move logic around
Diffstat (limited to 'foray/Scenes')
-rw-r--r--foray/Scenes/ForayTableViewController.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/foray/Scenes/ForayTableViewController.swift b/foray/Scenes/ForayTableViewController.swift
index ed44139..baa0e6b 100644
--- a/foray/Scenes/ForayTableViewController.swift
+++ b/foray/Scenes/ForayTableViewController.swift
@@ -45,7 +45,7 @@ class ForayTableViewController: UITableViewController, ForayCoordinated {
}
func reloadApiData() {
- presenter.getData(onComplete: { (data: [PenguinItemViewModel]) in
+ presenter.fetch(receiver: { (data: [PenguinItemViewModel]) in
let groups = Dictionary(grouping: data) { $0.year }
self.sections = groups.map { (key, values) in
return YearSection(year: key, items: values)