From 07a6eb8325d3b67d998003d3fe5ab34e1a72f106 Mon Sep 17 00:00:00 2001 From: Nicholas Tay Date: Fri, 25 Mar 2022 09:52:06 +1100 Subject: getData -> fetch, try threading, move logic around --- foray/Scenes/ForayTableViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'foray/Scenes') 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) -- cgit