aboutsummaryrefslogtreecommitdiff
path: root/foray/Fetchers/ForayFetcher.swift (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-07-17Clean up force unwraps and letsNicholas Tay1-6/+8
Wow, I didn't know `if let` was a thing back then, haha. Also made UIImage a bit safer in case asset is missing by unwrapping in one common place.
2022-07-17Experiment with async/awaitNicholas Tay1-16/+11
Note that URLSession async only works >=iOS 15. I changed the target for now, but may mess with continuations.
2022-03-25Reorganise: NetworkManager -> Fetcher, Models -> dedicated groupsNicholas Tay1-3/+1
2022-03-25getData -> fetch, try threading, move logic aroundNicholas Tay1-16/+17
2022-03-20Split structs into other file, split networking outNicholas Tay1-0/+50
It isn't much so far, as it is just effectively the API retrieval function extracted from the TableViewController. But this should also allow other VCs to get from API too if required :^)