Files
MapLibreParticleLab/platform/ios/src/MGLAnnotationContainerView.h
Jesse Bounds d9c6181f34 [ios] Add annotation container view (#5194)
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".
2016-06-01 17:36:07 -07:00

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