Skip to content

possen/Giffy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Giffy

This project demonstrates the following:

  • Querying Giphy to search for items based upon a keyword.
  • Utilizes the Swift 4 facility to decode the JSON directly into objects.
  • Results paging, based upon a sparse set of data.
  • Utilizes the Swift 4 zip facility and unbound ranges to insert items into the sparse dictionary(array) by using merge to insert new items into dictionary.
  • An autocomplete facility which changes and filters based upon what letters are typed (currently a hard coded list).
  • An in memory cache for keeping images around, or purging when max memory is reached.
  • Use of Adaptors to keep the reponsibilities of the objects limited and avoid the MassivViewController antipattern.
  • A Trie data structure to do the lookup of words for suggested autocomplete data.
  • Asyncronously loads autocomplete.
  • Saving and Reloads the built trie from disk so it only has to be built once. (uses JSON but would be better to use a binary format).