https://github.com/darrarski/swiftuimkmapview
SwiftUI wrapper for MapKit's MKMapView (UIKit).
https://github.com/darrarski/swiftuimkmapview
ios map mapkit swiftpackage swiftui
Last synced: 5 months ago
JSON representation
SwiftUI wrapper for MapKit's MKMapView (UIKit).
- Host: GitHub
- URL: https://github.com/darrarski/swiftuimkmapview
- Owner: darrarski
- License: mit
- Created: 2022-01-09T20:11:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-28T09:23:21.000Z (over 3 years ago)
- Last Synced: 2025-01-31T10:11:33.090Z (5 months ago)
- Topics: ios, map, mapkit, swiftpackage, swiftui
- Language: Swift
- Homepage:
- Size: 14.6 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SwiftUIMKMapView

SwiftUI wrapper for MapKit's MKMapView (UIKit).
## ▶️ Usage
Add as a dependecy to your project using Swift Package Manager.
Embed map view in your SwiftUI view:
```swift
import SwiftUIMKMapViewstruct ContentView: View {
var body: some View {
MapView(
visibleRect: /* Binding */,
annotations: /* [MKAnnotation] */,
annotationViewFactory: /* AnnotationViewFactory */,
overlays: /* [MKOverlay] */,
overlayRendererFactory: /* OverlayRendererFactory */
)
}
}
```Check out the included [example app](Example/ExampleApp/ExampleApp.swift).
## 🛠 Development
Open `SwiftUIMKMapView.xcworkspace` in Xcode (≥13.1) for development.
Use `ExampleApp` scheme to build and run the example application.
## ☕️ Do you like the project?
Consider supporting further development and buy me a coffee.
## 📄 License
Copyright © 2022 Dariusz Rybicki Darrarski
License: [MIT](LICENSE)