Scalable solution using MVVM + Coordinators. Factory pattern was used to easily access fonts/colors/reusable views. Basic Unit testing and an example UI test is also included.
- View Reddit Home
- Search For & View Subreddits
- Webview For Posts
- See Popular Subreddits Skeleton
Todos:
- Update popular subreddits view
- Separate Factory into its own module
- Add integration tests with mock API responses
- Add navigation to go back to the Home page without deleting a search
- Add a better default image for text posts
3rd party libraries were installed using cocoapods:
-
Install cocoapods if not already installed using
brew install cocoapods
-
Then run
pod install
in the project's root directory.