Swift - Help with a proximity app to display an image when near a beacon

Hi All

I’m new to the community and to developing in Swift.

I’ve got my shiny new beacons, both Proximity and Location. I’ve had a play with the example Apps from the cloud store. I’ve also followed some online tutorials which do a similar thing to the cloud apps, like change the colour of the screen when a beacon is in range.

I was just wondering could anyone assist with how I’d get my app to launch an image instead of changing colours when in range? or perhaps launch a URL?

Thanks in advance, I’m keen to learn but know when I need to ask for help :slight_smile:


1 Like

One way to go about it is to use interface builder to add view controllers for the images and create segues between. In your main controller use a conditional statement like:

if(beaconDetails.beaconName == “blueberry”) {
self.performSegue(withIdentifier: “beaconDetailsSeg", sender: AnyObject?.self)

Thank You Manuel

I really appreciate your reply and will do my best to follow your suggestion :slight_smile:

I’ll let you know how I get on.

Many Thanks