SwiftUIMKMapView

0.3.0

SwiftUI wrapper for MapKit's MKMapView (UIKit).
darrarski/SwiftUIMKMapView

What's New

v0.3.0 - Improved map scrolling

2022-01-14T16:56:22Z

Full Changelog: v0.2.0...v0.3.0

SwiftUIMKMapView

Swift 5.5 platform iOS

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:

import SwiftUIMKMapView

struct ContentView: View {
  var body: some View {
    MapView(
      visibleRect: /* Binding<MKMapRect> */,
      annotations: /* [MKAnnotation] */,
      annotationViewFactory: /* AnnotationViewFactory */,
      overlays: /* [MKOverlay] */,
      overlayRendererFactory: /* OverlayRendererFactory */
    )
  }
}

Check out the included example app.

🛠 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

Description

  • Swift Tools 5.5.0
View More Packages from this Author

Dependencies

  • None
Last updated: Wed Jun 29 2022 00:51:05 GMT-0500 (GMT-05:00)