geoadmin / lib-open-swiss-maps-sdk

Android and iOS SDK to display maps and geodata of swisstopo. Owner: simonroesch, Deputy: gjn
https://www.swisstopo.ch/sdk
Mozilla Public License 2.0
37 stars 4 forks source link

Any easy way to use this with SwiftUI? #31

Open N3XT191 opened 3 years ago

N3XT191 commented 3 years ago

Hi :)

What is the easy way to use this SDK in SwiftUI?

The whole "UIViewRepresentable" road seems a bit cumbersome, especially if a lot of data has to be passed both ways.

Admittedly I am very inexperienced with the old UIKit and mostly know the newer SwiftUI

Thanks for the help!

Fahrenberg commented 9 months ago

Would be nice to provide a native SwiftUI view. @N3XT191 : could provide the wrapper for SwiftUI using your UIViewRepresantable?