InderKumarRathore / TMDbSearch

This sample app uses tmdb search apis to show the searched movies in a table view

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TMDb Search

This sample project searches the movies from the tmdb apis

NOTE

  • Use device if possible, my simulator (on my system) was very slow. But on iPhone 5s it is very smooth.
  • User software keyboard's search button to search if you're running sample on simulator

Feature

  • Lazy loading in table view
  • Image Caching (Memory and Disk)
  • Used ImageIO's CGImageSourceCreateThumbnailAtIndex to down sample images efficiently
  • Used concurrent Operation, because apple has deprecated the synchronous download of data
  • Followed VIP architecture (Similar to VIPER)

Enhancement

  • Right now we can search if there is existing search going on, it can be improved
  • In ImageFetcher class there we're loading images from disk on a serial queue. It can be improved
  • There is a general error message for all the server errors, can be improved
  • Right now there is not detail view controller, hence can't see full size image. We can add that too with beautiful animation

Debug code

There is a parameter index which is roaming like a king in the code from one method to another method, don't get panic it's there to help us to know how the images are being downloaded. Of course this index parameter can be removed. It used in print statements.

License

MIT

Free Software, Hell Yeah!

About

This sample app uses tmdb search apis to show the searched movies in a table view


Languages

Language:Swift 100.0%