From 0880013807210ac31daeb368e4d0a50495b14808 Mon Sep 17 00:00:00 2001 From: Fabian Guerra Date: Wed, 29 Nov 2017 12:39:05 -0500 Subject: [ios] Fix an Interface Builder crash for IBInspectable properties. --- platform/ios/src/MGLMapView+IBAdditions.h | 2 ++ platform/ios/src/MGLMapView.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/platform/ios/src/MGLMapView+IBAdditions.h b/platform/ios/src/MGLMapView+IBAdditions.h index d02c938c57..6d5351df2b 100644 --- a/platform/ios/src/MGLMapView+IBAdditions.h +++ b/platform/ios/src/MGLMapView+IBAdditions.h @@ -31,6 +31,8 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic) IBInspectable double latitude; @property (nonatomic) IBInspectable double longitude; @property (nonatomic) IBInspectable double zoomLevel; +@property (nonatomic) IBInspectable double minimumZoomLevel; +@property (nonatomic) IBInspectable double maximumZoomLevel; // Renamed properties. Interface Builder derives the display name of each // inspectable from the runtime name, but runtime names don’t always make sense diff --git a/platform/ios/src/MGLMapView.h b/platform/ios/src/MGLMapView.h index e2c070a54f..ef86266457 100644 --- a/platform/ios/src/MGLMapView.h +++ b/platform/ios/src/MGLMapView.h @@ -610,7 +610,7 @@ MGL_EXPORT IB_DESIGNABLE * * The default minimumZoomLevel is 0. */ -@property (nonatomic) IBInspectable double minimumZoomLevel; +@property (nonatomic) double minimumZoomLevel; /** * The maximum zoom level the map can be shown at. @@ -621,7 +621,7 @@ MGL_EXPORT IB_DESIGNABLE * The default maximumZoomLevel is 22. The upper bound for this property * is 25.5. */ -@property (nonatomic) IBInspectable double maximumZoomLevel; +@property (nonatomic) double maximumZoomLevel; /** The heading of the map, measured in degrees clockwise from true north. -- cgit v1.2.1