An open API service indexing awesome lists of open source software.

https://github.com/possen/giffy

Giphy Query
https://github.com/possen/giffy

adaptors autocomplete decoding giphy-query ios paging sparsearray swift-4

Last synced: 3 months ago
JSON representation

Giphy Query

Awesome Lists containing this project

README

        

# 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).