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 am finding that SwiftUI has really made things a lot simpler.
I put up a small repository using this feature maybe it would be helpful to others.
Here are some resources I used in my research.
Hacking with Swift - learn to code iPhone and iPad apps with free Swift 5.3 tutorials
Xcode is a huge program, and if you can learn one or two new tips that help you work more effectively you can save…
If you enjoy reading stories like this and want to support me as a writer, Consider buying me a Coffee ☕️
Join Medium with my referral link - Mike Haslam
As a Medium member, a portion of your membership fee goes to writers you read, and you get full access to every story…
#ios #swiftui #swift #xcode #mobiledevelopers #mobileapp #iosapp