View your reddit comment history by phases of subreddit activity
- Ensure you're running Xcode 11.4.1 or later
- May get "expression failed to parse, unknown error" when running previous versions
- Download the repo and open the playground file
- Replace YOUR_REDDIT_USERNAME at the top of the file with any valid username
- Modify the period, maxComments, and filters to customize the output
- Why a max of 1000 comments? Sorry, reddit api limit!
- Enjoy!
- Use of reddit api to fetch any user's comment history (no OAuth!)
- Recursive callbacks with after param to return up to 1000 comments
- Easy json parsing to model objects using Codable
- Dictionary data grouping by given period (day, week, month, etc)
- Learning to graph with the lightweight SwiftChart library
- UICollectionView for subreddit selection
- Designing custom, self-sizing cells
- Improved familiarity with Xcode Playgrounds
Thank you to gpbl for SwiftChart and mischa-hildebrand for AlignedCollectionViewFlowLayout. Adopting both libraries made it much easier to focus on the core of this project!