Get Updates By E-mail 

Article Written By:
Johann Dowa

Open Source Swift Library For Easy Location Gathering With Built In Permission Handling


Late last year I mentioned a couple of Swift based libraries for easier location gathering, geocoding, and drawing directions on maps.

Here’s a nice simple to use Swift based library for gathering the current location of the user or with built in permission handling called WhereAmI from Romain Rivollier.

You can set whereAmI to ask for when in use or always permissions, chose bettween different location accuracy profiles, and you can gather one time locations or continuously updated locations all with just a few lines of code. You can also retrieve address details if desired.

This simple example of the readme shows how to gather the current location, continuously update, and handle the location data:

//If you want continuous update
WhereAmI.sharedInstance.continuousUpdate = true;

//Request the current location
WhereAmI.sharedInstance.whereAmI({ (location) -> Void in

<pre><code>//Use the location data        
}, locationRefusedHandler: {(locationIsAuthorized) -&gt; Void in

    if (!locationIsAuthorized) {
        //The location authorization has been refused


You can find WhereAmI on Github here.

A nice Swift based library for working with location data with a clean and simple syntax.


Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.