Skip to content

Latest commit

 

History

History
36 lines (19 loc) · 1.1 KB

File metadata and controls

36 lines (19 loc) · 1.1 KB

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