Use any custom view as custom callout view for MKMapView with cool animations
What is MapViewPlus?
MapViewPlus gives you the missing methods of MapKit which are: imageForAnnotation and calloutViewForAnnotationView delegate methods.
- Return any UIImage from imageForAnnotation (image shouldn’t have paddings)
- Create any UIView to use as your custom callout view and return it from calloutViewForAnnotationView
- MapViewPlus will:
- Add an anchor view to bottom of your callout view
- Combine callout view with the anchor view and add shadow to both of them
- Add a cool animation to CalloutAndAnchorView
- Make it user interaction enabled (this may be easy but tricky sometimes)
- Scrolls map view to show the callout view completely after tapping the annotation view
- Even give a ready-to-use template for callout view
- Forward all of the delegate methods of MKMapView to your subclass of MapViewPlus (except mapView:viewForAnnotation:)
Overview
- Pricing: Free
- Resource Link: https://github.com/okhanokbay/MapViewPlus
- Resource Maker: Okhan Okbay
- Mobile Platform Destination: iOS Apps
- Mobile Platform Support: Native iOS
- Programming Languages: Swift
- iOS Versions Supported: iOS 9.0+, iOS 10.0+, iOS 11.0+, iOS 12.0+
- CocoaPods: MapViewPlus
The team behind mobintouch
Website: https://www.mobintouch.com
Resources added 👉 3142
Related resources
Twitter-kit-ios
Twitter Kit is a native SDK to include Twitter content inside mobile apps
SWNetworking
An open-source and highly versatile multi-purpose frameworks
Sleipnir
BDD-style framework for Swift