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
- Host: GitHub
- URL: https://github.com/possen/giffy
- Owner: possen
- Created: 2017-06-13T01:02:32.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-04T01:54:17.000Z (almost 8 years ago)
- Last Synced: 2025-01-06T02:24:16.876Z (5 months ago)
- Topics: adaptors, autocomplete, decoding, giphy-query, ios, paging, sparsearray, swift-4
- Language: Swift
- Homepage:
- Size: 126 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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).