NEW: Start my new Ultimate Portfolio App course with a free Hacking with Swift+ trial! >>

DAY 75

Project 22, part one

We looked at MapKit back in project 16, and while maps work great for finding location at the large scale, they work much less well for small-scale location – when you’re inside buildings, or perhaps trying to measure distances in terms of centimeters.

The problem is that location matters. As Phyllis Schlafly said, “location is the key to most businesses, and the entrepreneurs typically build their reputation at a particular spot.” You’ve probably heard the saying “location, location, location”, which pretty much sums it up.

Well, today you’re going to learn about micro-location: the ability to detect very small distances between things, even when you’re inside. This is all made possible through Apple’s iBeacon technology, which are Bluetooth-powered devices that emit low-energy signals iOS can detect and act on.

The range is short – maybe 40 meters / 130 feet in a line of sight – but these devices use so little power that they can survive for years on a tiny battery. This makes them perfect for museums, schools, galleries, malls, and more.

Today you have three topics to work through, and you’ll learn about Core Location, CLBeaconRegion, and more.

Need help? Tweet me @twostraws!


Hacking with Swift is sponsored by Instabug

SPONSORED Catch bugs as soon as they happen and know exactly why a crash occurred. Instabug's SDK grabs all the logs they need to fix bugs, crashes and performance issues in minutes instead of days. Get screenshots, device details, network logs, repro steps, and tons of other critical insights needed to resolve issues and prioritize product backlogs straight from your dashboard. It only takes a minute to integrate!

Get started now

Sponsor Hacking with Swift and reach the world's largest Swift community!

100 Days of Swift

The 100 Days of Swift is a free collection of videos, tutorials, tests, and more to help you learn Swift faster. Click here to learn more, or watch the video below.

Back to 100 Days of Swift

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.