Add a container view to hold annotations. This gets around a performance issue with `UIView:addSubview:` where adding views is N^2. It helps annotation views avoid cutting into callout views when the annotation views are transformed to be "flat".
18 lines
365 B
Objective-C
18 lines
365 B
Objective-C
#import <UIKit/UIKit.h>
|
|
|
|
#import "MGLTypes.h"
|
|
|
|
@class MGLAnnotationView;
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface MGLAnnotationContainerView : UIView
|
|
|
|
+ (instancetype)annotationContainerViewWithAnnotationContainerView:(MGLAnnotationContainerView *)annotationContainerView;
|
|
|
|
- (void)addSubviews:(NS_ARRAY_OF(MGLAnnotationView *) *)subviews;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|