The project’s idea is to list trending projects from Github, tap on one of them, and show their details.
In case you would like to try it out, you should replace the -template- token with your GitHub token in NetworkingManager line 21.
- SwiftUI
- MVVM
- Combine
- Dependency Injection
- String Localization
- Unit tests for ViewModels
- UI test for the 3 main View
- Test coverage is 84.5%
- Tested on iOS 15 & 16 on different devices
- GithubTrendingAPI - GitHub trending scraper
- MarkdownView - Advanced .md viewer
Simulator.Screen.Recording.-.iPhone.14.-.2022-10-29.at.16.34.26.MOV
Simulator.Screen.Recording.-.iPhone.14.-.2022-10-29.at.16.34.26.2.MOV
Simulator.Screen.Recording.-.iPhone.14.-.2022-10-29.at.16.34.26.3.MOV
- GithubTrendingAPI:
The scraper package dependency is not the best, the Repository model properties are inaccessible due to 'internal' protection level but still printable so I slice out the necessary information from it.
In case of production this should be forked and fixed.
- MarkdownView:
The latest release lacks support for iOS 16, so I forked it and fixed it. Now the projects rely on a version from my GitHub.
https://github.com/borsosbe/MarkdownView/tree/bugfix/ios_16
Also created a pull request for them: keitaoouchi/MarkdownView#103
The MarkdownView webView solution throws some warning on the console, but nothing major.
In case of production this should be forked and further fixed.
On rare occasions, GitHub Repos READ.me download URL is not reliable from the GitHub API. Good chance you never notice that, but worth to mention.
api/repos/{owner}/{repo}/contents/{path} -> response "message": "Not Found"