Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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).

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 SwiftUIMKMapView

struct 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?


Buy Me A Coffee

Consider supporting further development and buy me a coffee.

 

## 📄 License

Copyright © 2022 Dariusz Rybicki Darrarski

License: [MIT](LICENSE)