Skip to content

dannofx/ReddimgurGallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReddimgurGallery

ReddimgurGallery is an iOS app made in Swift that shows images hosted in Imgur related to a certain subreddit. When the user introduces a subreddit name in the search bar, the images will be asynchronously loaded.

I made this app to get some practice working with OperationQueue, some CoreData features like NSBatchDeleteRequest, DispatchQueue and Swift coding in general. That is the reason why the app doesn't use simply URLSession and some cache like NSCache or NSURLCache.

Preview

Requirements

The app makes use of the Imgur API, so, in order to run the app you will need to get a Client ID to use the API.

First, create an account in Imgur if you don't have one yet. Then, go here to register an application, once there, introduce an application name, select "Anonymous" as authorization type, introduce a callback URL (won't be used) and an email. After submiting the information you will have your client ID.
Open the XCode project open ImgurToken.swift, replace the clientID value with your token and remove the takes that provokes an error. You should see something like this:

import Foundation

struct ImgurCredentials {
    static let clientID = "ad14ad14ad14ad14"
}

Note: "ad14ad14ad14ad14" is just an example, it represents your clientID.

After updating the file you are ready to run the app.

Contributions

By now, I'm not thinking in growing this project, but contributions via pull requests are welcome.

About

Gallery that shows imgur images by subreddit

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages