aboutsummaryrefslogtreecommitdiff
path: root/foray/ForayTableViewController.swift (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add back in description label and image to custom cellNicholas Tay2022-03-181-13/+13
| | | | | | | | I don't think this 100% is the correct way with SnapKit. Need to seek advice and improve the constraints. However, an improvement over before is that the accessibility font sizes actually do work as intended now! Now to add back in the segues somehow...
* Split table view cell into separate fileNicholas Tay2022-03-181-10/+17
| | | | | | | | | Cell no longer uses prototypes as registered in the Storyboard. Instead is a custom class inheriting the UITableViewCell and is manually registered by the VC. This is a first step towards reimplementing the prototype cells. Only has one label at the moment.
* Use public URL for dummy API JSONNicholas Tay2022-03-161-3/+5
| | | | Remembered I actually had a public server for me to dump files on lol
* Sort items by date first as well for within-section sortNicholas Tay2022-03-161-0/+1
|
* MyItem -> PenguinItemNicholas Tay2022-03-161-13/+13
| | | | | | Makes it clear which parts are tightly coupled. I want to learn how to make this more generic so I can try hooking into other APIs easily (which make require different destructuring of JSON).
* Add refresh control + fix weird cachingNicholas Tay2022-03-161-2/+16
| | | | | | | | | It might be my web server causing the weird caching with headers (it's just a json file on nginx). Changing the policy in the request seems to have fixed it though. Refresh control references: - https://stackoverflow.com/questions/24475792/how-to-use-pull-to-refresh-in-swift
* Loading overlay on main screenNicholas Tay2022-03-161-0/+11
| | | | | | | | I'm not 100% sure if this is the best way to do it, but it looks decent and it works. Resources: - https://stackoverflow.com/questions/27960556/loading-an-overlay-when-running-long-tasks-in-ios
* Add a detail viewNicholas Tay2022-03-161-0/+10
| | | | | Resources: - https://guides.codepath.com/ios/Using-UITableView (was a bit dated)
* Make items Decodable and hook up to a JSON dummy endpointNicholas Tay2022-03-151-21/+53
| | | | | | | Resources: - https://stackoverflow.com/questions/56443859/display-in-json-api-table-view-in-swift - https://www.avanderlee.com/swift/json-parsing-decoding/ - https://stackoverflow.com/questions/24321165/make-rest-api-call-in-swift
* Second type of custom cellNicholas Tay2022-03-141-9/+24
| | | | Not sure if this is the correct way of switching into a different cell type with the prototypes, but it works. To review.
* Grouping items together by yearNicholas Tay2022-03-141-10/+49
| | | | https://www.ralfebert.com/ios-examples/uikit/uitableviewcontroller/grouping-sections/
* Learning UITableViewController: array data + custom cellsNicholas Tay2022-03-141-0/+59
Forgot to commit after finishing just the using array data bit. So committing with the custom cells done. https://www.ralfebert.com/ios-examples/uikit/uitableviewcontroller/