It’s often said that coders turn coffee into computer programs. Let’s take that to the next level by coding an app that shows you the nearest coffeeshop!
In this coding guide, you’ll use the following techniques:
- Swift, Xcode and Interface Builder (Auto Layout, Constraints and Storyboards)
- Realm, the lightweight Core Data replacement for local data storage
- Foursquare, with “Das Quadrat” library to connect to their REST API
- CocoaPods and Geolocation
The app monitors your location in a 500 by 500 meter region, and fetches venue data from Foursquare accordingly. You’ll use a map view (MKMapView) and a table view (UITableView) to display the data. Also, you’ll filter data with Realm and then sort it with a closure.
You can check out the full source code and Xcode project for this guide on GitHub: reinderdevries/CoffeeGuide.
Neat, right? Let’s get started!