From 5b488225fb720ef607c13a33ff6509d92bb7de95 Mon Sep 17 00:00:00 2001 From: Jason Wray Date: Thu, 11 Jul 2019 16:06:54 -0700 Subject: [ios] Add MGLCompassButton and MGLOrnamentVisibility --- platform/ios/src/MGLCompassButton.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 platform/ios/src/MGLCompassButton.h (limited to 'platform/ios/src/MGLCompassButton.h') diff --git a/platform/ios/src/MGLCompassButton.h b/platform/ios/src/MGLCompassButton.h new file mode 100644 index 0000000000..9c3d9d1c77 --- /dev/null +++ b/platform/ios/src/MGLCompassButton.h @@ -0,0 +1,22 @@ +#import + +#import "MGLTypes.h" + +NS_ASSUME_NONNULL_BEGIN + +/** + A specialized view that displays the current compass heading for its associated map. + */ +MGL_EXPORT +@interface MGLCompassButton : UIImageView + +/** + The visibility of the compass button. + + You can configure a compass button to be visible all the time or only when the compass heading changes. + */ +@property (nonatomic, assign) MGLOrnamentVisibility compassVisibility; + +@end + +NS_ASSUME_NONNULL_END -- cgit v1.2.1