/ImageFetcherApp

Fetch images from Imgur APIs

Primary LanguageSwift

Image Fetcher App

an application that searches for the top images of the week from the Imgur gallery and displays them in a list.


Note

Searched Images are coming from imgur website.

This application using thirdparty called ImgurUtils

My Objective is to seperate Network layer by creating spm and cosuming APIs from it


Tip

Before running application get Client Id from Imgur

once you get Client Id from website put it into SearchViewModel line number 32

Screenshot 2024-01-03 at 4 35 43 PM

Solution

Each cell needs to display the following for each search result:

  • title
  • date of the post in local time (DD/MM/YY hh:mm am/pm)
  • number of additional images in the post (if there are multiple)
  • image

Main screen has 4 phase :

  • Result Phase
Screenshot 2024-01-03 at 4 41 35 PM
  • Empty Phase

    Screenshot 2024-01-03 at 4 51 21 PM
  • Loading Phase

    Screenshot 2024-01-03 at 4 52 07 PM
  • Error Phase

    Screenshot 2024-01-03 at 4 52 51 PM

In App we have toggle option to switch from Grid to List

  • Grid

Simulator Screenshot - iPhone 15 Pro - 2024-01-03 at 17 09 56

  • List

    Simulator Screenshot - iPhone 15 Pro - 2024-01-03 at 17 08 43