How To Open Apple Maps From An Address In SwiftUI

In an iOS app I am working on I need to show a map from an address.

But after researching and asking some questions I was able to get it to work.

I must admit I struggled quite a bit with how to show an alert if the address string was invalid In hindsight, the solution is pretty straightforward. It comes down to just Observing a published property in an Observable Object Class.

--

--

--

I love my wife coding & travel

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

GSoC Red Hen Lab — Week 2

ClickHouse 18.12.13-2018-09-10版本新特性解析

Creating a Status Bar with Ammo Count & Thruster Percentage

Native or Web-Based? Selecting the Right Approach for Your Mobile App

Az104 — Application Insights

Let’s do some magic! (with SQL and Python)

Security Is a Service Owner Problem, It’s Not Just for Your CISO

Generate SSL for Main Domain and Subdomain (Wildcards)using acme_nginx on Ubuntu 18.04

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mike Haslam

Mike Haslam

I love my wife coding & travel

More from Medium

Please Don’t Explain It, Just Fix It

BNBFOMO.net— High APY Yield Farming. Earn from 8% up to 13.71% Daily on your Staked BNB

Story Idea and Octopus Teacher

Polygon vs Harmony