This is a simple utility to search for images using the Google Images API
.
Demonstrates Pinterest-esque layout, hiding navigation bar on scroll, recent searches, and auto-complete.
You are restricted to 64 results without an API key and 1000 results with an API key.
Google seems to be rate limiting the endpoint, so we are delaying auto-complete requests by 0.4 seconds by default to help cull excessive requests
- AFNetworking
- AMScrollingNavbar
- CHTCollectionViewWaterfallLayout
- PureLayout
GIS for iOS is released under a slightly modified Simplified BSD License.
Please don't upload this code directly to the App Store as is without making subsantial improvements.
- allow user to view full image, image details, etc.
- allow user to change search options (grayscale images, faces, clip art, safe search, etc.)
- better error handling
- create plist to handle all constants / tweakable values for easy tweaking for stakeholders
- show loading inline by way of custom uicollectionviewcell footer / headers
- better error/state handling (reachability, network errors, API errors, end of results, no results, etc.)