aboutsummaryrefslogtreecommitdiff
path: root/foray/Scenes/ForayDetailViewController.swift (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-07-18Try out 'share' aka UIActivityViewControllerNicholas Tay1-1/+11
2022-07-17Clean up force unwraps and letsNicholas Tay1-2/+2
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-17Try out moving coordinator 'coordinated' VC thingNicholas Tay1-1/+2
2022-03-25Move Details ViewModel -> string/image into VCNicholas Tay1-2/+15
2022-03-24Reorganise into folder groupsNicholas Tay1-0/+0
In preparation for presenters to come in largely, lots of files starting to go everywhere...
2022-03-24Split details view into separate View and VCNicholas Tay1-72/+6
Also fixed the scrollview margins while I was at it - it looked weird being so inside
2022-03-21Fix scroll in details viewNicholas Tay1-0/+1
Didn't constrain details label to the bottom of the content container, so scroll view didn't pick up on it (test with large font on a smaller viewport phone).
2022-03-21First try at implementing coordinator patternNicholas Tay1-19/+7
Resources: - https://www.hackingwithswift.com/articles/71/how-to-use-the-coordinator-pattern-in-ios-apps
2022-03-20Add ScrollView to details screenNicholas Tay1-4/+14
Would make more sense as more lines get added in (especially if ui elements programatically), as well as since horizontal layout is allowed if the screen is small you can scroll
2022-03-19Merge ForayNewDetailView into the VC itselfNicholas Tay1-5/+71
Not sure if this is the right move, but it felt extraneous to have a whole UIView to itself for now. Instead just have it right inside the VC. Probably a step in the wrong direction though, but will need to review.
2022-03-19Fix selected item not being passed throughNicholas Tay1-3/+4
2022-03-19Storyboard is GONENicholas Tay1-0/+1
Note - I had to fo into the Target settings -> Info -> Custom iOS Target Properties -> adjust the Application Scene Manifest there. Resources: - https://ioscoachfrank.com/remove-main-storyboard.html - https://stackoverflow.com/questions/25167458/changing-navigation-title-programmatically
2022-03-19Detail view is now programatically createdNicholas Tay1-20/+8
Using SnapKit and some experimentation around the VC. Next step is to change segue and then maybe get rid of storyboard all together.
2022-03-16MyItem -> PenguinItemNicholas Tay1-1/+1
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).
2022-03-16Modify details to multiline with release date includedNicholas Tay1-3/+10
2022-03-16Add a detail viewNicholas Tay1-0/+33
Resources: - https://guides.codepath.com/ios/Using-UITableView (was a bit dated)