- Xcode 11.5
- iOS 13+
App is consist of two screen and has below featues
- Searching : Search images through tags.
- Infite Srolling : Get the new search results by scrolling.
- Caching : You can search images from local database in case of internet unavailibilty.
- Full Screen View : You can tap on image to view the image in big size
App is based on MVVM-C architecture. Structure is broken down by the general purpose of contained source files. Below are the dependencies used in the project
- RxSwift : Used to bind the flow between layers
- SDWebImage : Used for networking.
- NVActivityIndicatorView : Used to show loading states.
- SwiftLint : A tool to enforce Swift style and conventions, loosely based on GitHub's Swift Style Guide.
Images are retrieved by hitting the Flickr API.
- Search Path:
https://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=YOUR_FLICKR_API_KEY&format=json&nojsoncallback=1&safe_search=1&text=KEYWORD
- Response includes an array of photo objects, each represented as:
{
"id": "23451156376",
"owner": "28017113@N08",
"secret": "8983a8ebc7",
"server": "578",
"farm": 1,
"title": "Merry Christmas!",
"ispublic": 1,
"isfriend": 0,
"isfamily": 0
}
http://farm{farm}.static.flickr.com/{server}/{id}_{secret}.jpg
http://farm1.static.flickr.com/578/23451156376_8983a8ebc7.jpg