Select to view content in your preferred language

SwiftUI integration

3356
16
05-05-2021 10:10 PM
Shimoorook
New Contributor

Is there a timeline or plan to have a SwiftUI version of the iOS SDK?

If not, will there at least be a few tutorials or samples for users who only use SwiftUI and want to use Esri's SDK?

Tags (2)
0 Kudos
16 Replies
Nicholas-Furness
Esri Regular Contributor

Hi @Shimoorook,

We are working on a Swift version of the Runtime SDK for iOS that will work directly with Swift UI, but it won't be available before 2022. At this time we don't have anything we can share but we intend to spin up a beta program, hopefully later this year. Watch this space for an announcement.

In the meantime, you could start with Apple's tutorial that uses MapKit and replace the MapKit Map with Runtime's AGSMap. We hope to have some samples available before too long.

0 Kudos
Ting
by Esri Contributor
Esri Contributor

Hi,

I'm working on creating a few SwiftUI samples with the current Runtime SDK.

This is the first PR: https://github.com/Esri/arcgis-runtime-samples-ios/pull/1103 and we'll probably add more samples to demonstrate different common use-cases. Edit: check out the sample here!

I'll keep you posted once we make more progress 😃.

NaiefM
by
New Contributor

Hai ,any announcement or any updates on SwiftUI integration.

 

0 Kudos
Justin_Greco
Frequent Contributor

On April 7th they announced that it should be available in August.  I am sure they will discuss during the runtime road ahead session at the UC.  I decided to hold off until then on my app since I really would prefer to use SwiftUI.

https://www.esri.com/arcgis-blog/products/runtime-sdk/announcements/arcgis-runtime-in-2022-and-beyon...

In August, the 100.15 release will be our first ever long-term support release. 

The next version of the ArcGIS Runtime SDKs after 100.15 will be version 200.0. It will build upon 100.15 to deliver the same functionality, integrations, and patterns you’re using today, but honed to the latest developer tooling provided by Apple, Google, Microsoft, Qt and Java.

With this release we will:

  • Introduce an all-new ArcGIS Runtime SDK for Swift.

 

ArcGIS Runtime SDK for Swift

This will be a full reimagining of the ArcGIS Runtime SDK as a Swift-first SDK, with out of the box support for features like Swift Concurrency, SwiftUI, structs, protocols, enums with associated values, and native Swift collections. The ArcGIS Runtime SDK for Swift will replace the Objective-C based ArcGIS Runtime SDK for iOS and some rewriting of application code will be required.

 

 

0 Kudos
Nicholas-Furness
Esri Regular Contributor

Hi @Justin_Greco. Just to clarify, August will be our last release before we introduce Swift UI in the 200.0 release of the new ArcGIS Runtime SDK for Swift. Re-reading the blog post, I can see we could be clearer. I've updated the post.

In the meantime, just to reiterate Ting's comment above, we do have this sample to show how to use the current ArcGIS Runtime SDK for iOS with Swift UI.

0 Kudos
Justin_Greco
Frequent Contributor

Actually while I was typing this (on my flight to San Diego) I was wondering if I read it wrong.  Thanks for the super quick response!  Glad to see its on the road map.

0 Kudos
GBreen
by
Occasional Contributor

I've created a simple package that allows for using ArcGIS in SwiftUI.

https://github.com/gbreen12/EsriSwiftUI

Feel free to use it and contribute until this is available from Esri themselves

0 Kudos
AkshayPatil
New Contributor

Hi,
I have started working on Esri Map for SwiftUI, i am able to show the map but now able find out other functionality how to integrate in SwiftUi code. All https://github.com/gbreen12/EsriSwiftUI examples are in UIKit based. Could you help me to get code in SwiftUI front.

Also Esri map support clustering? and Pin Drag drop functionality?

Thanks

0 Kudos
GBreen
by
Occasional Contributor

The 200.0 Beta looks great! Is there a timeline on when it should come out of beta?

0 Kudos