Renamed MGLCalloutView to MGLCompactCalloutView and MGLCalloutViewProtocol to MGLCalloutView to avoid an awkward workaround for a Swift name collision. Replaced individual title and subtitle properties with a single representedObject property that lets you use custom annotation properties in the custom callout view. Overrode a problematic SMCalloutView method. Added lots more documentation.
12 lines
411 B
Objective-C
12 lines
411 B
Objective-C
#import "SMCalloutView.h"
|
||
#import "MGLCalloutView.h"
|
||
|
||
/**
|
||
A concrete implementation of `MGLCalloutView` based on [SMCalloutView](https://github.com/nfarina/calloutview). This callout view displays the represented annotation’s title, subtitle, and accessory views in a compact, two-line layout.
|
||
*/
|
||
@interface MGLCompactCalloutView : SMCalloutView <MGLCalloutView>
|
||
|
||
+ (instancetype)platformCalloutView;
|
||
|
||
@end
|