Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/darrarski/swiftuimkmapview
SwiftUI wrapper for MapKit's MKMapView (UIKit).
https://github.com/darrarski/swiftuimkmapview
ios map mapkit swiftpackage swiftui
Last synced: 4 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 (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-28T09:23:21.000Z (about 3 years ago)
- Last Synced: 2024-10-10T22:42:04.841Z (4 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
![Swift 5.5](https://img.shields.io/badge/swift-5.5-orange.svg)
![platform iOS](https://img.shields.io/badge/platform-iOS-blue.svg)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)