https://github.com/ihacksubhodip/redditpics
Show an infinitely scrolling list of pictures posted to Reddit.
https://github.com/ihacksubhodip/redditpics
ios-swift reddit-api
Last synced: about 2 months ago
JSON representation
Show an infinitely scrolling list of pictures posted to Reddit.
- Host: GitHub
- URL: https://github.com/ihacksubhodip/redditpics
- Owner: iHackSubhodip
- License: mit
- Created: 2019-05-27T13:13:14.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-28T10:03:55.000Z (almost 6 years ago)
- Last Synced: 2025-01-31T10:34:28.432Z (4 months ago)
- Topics: ios-swift, reddit-api
- Language: Swift
- Size: 67.4 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RedditPics
### Show an infinitely scrolling list of pictures posted to Reddit.
### • To get the feed use the http://www.reddit.com/r/pics/hot.json
### • Each row in the list should show a thumbnail with a title
### • Force Tapping a thumbnail should show a larger version of the image.[3D touch]
### • To get the next page of results, append the value of "after"
### • E.g.: http://www.reddit.com/r/pics/hot.json?after=t3_3aek8j### Points to be mentioned:
#### • App is built is using Swift 5.0 and Xcode 10.2.1.
#### • No Storyboards are used, UI is coded. [Yeah, no Main.storyboard, Except launchscreen.storyboard].
#### • No Third party libraries are used. [App has a Network Layer and Image Downlader and Caching Mechanism].### Improvements can be done:
#### • Write Unit test cases.
#### • Properly show errors in the screen.
#### • More Optimization in Caching and Network layer. [Like retry and all isn't implemented.]
#### • Loading animation whereever required.[Like in the preview, when Image is loading]### • Instructions:
#### • Open the app in Xcode 10.2.1.
#### • Swift version is 5.0.
#### • To run the app, CMD + R.
#### • Disable unwanted OS activity by - From Xcode menu open: Product > Scheme > Edit Scheme, On your Environment Variables set OS_ACTIVITY_MODE = disable#### Thanks for your time for reading this long document :D
### Best, Subhodip