Skip to content

ppoh71/MpaBoxAnnotationAddAndSelectTest

Repository files navigation

mapbox-maps-swiftui-demo

This a demo MapBox/SwiftUI app to add location marker to mapview. Also: selected locations are displayed in a SwiftUI. This is an answer to this Stackoverflow Question

Credits for the implementation of EnvironmentObject with UIViewRepresentable: Combine & UIViewRepresentable

Please follow the basic instruction to setup mapview here: Basic tutorial on how to integrate the Mapbox Maps SDK for iOS with SwiftUI.

Build with

  • Xcode 11.7
  • Swift 5
  • Swift, SwiftUI, Combine, MapBox

Installation

  1. Download Zip file and unpack
  2. Follow basic mapbox tutorial for setup (pod install, mapbox api key, etc.)
  3. Open MapboxSwiftUIDemo.xcworkspace
  4. Run app by selecting Build button or Command + R

Licensing:

Public Domain

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published