Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit 177afa9

Browse files
committed
[ios] Fix an Interface Builder crash for IBInspectable properties.
1 parent d650b91 commit 177afa9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

platform/ios/src/MGLMapView+IBAdditions.h

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ NS_ASSUME_NONNULL_BEGIN
3131
@property (nonatomic) IBInspectable double latitude;
3232
@property (nonatomic) IBInspectable double longitude;
3333
@property (nonatomic) IBInspectable double zoomLevel;
34+
@property (nonatomic) IBInspectable double minimumZoomLevel;
35+
@property (nonatomic) IBInspectable double maximumZoomLevel;
3436

3537
// Renamed properties. Interface Builder derives the display name of each
3638
// inspectable from the runtime name, but runtime names don’t always make sense

platform/ios/src/MGLMapView.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ MGL_EXPORT IB_DESIGNABLE
610610
*
611611
* The default minimumZoomLevel is 0.
612612
*/
613-
@property (nonatomic) IBInspectable double minimumZoomLevel;
613+
@property (nonatomic) double minimumZoomLevel;
614614

615615
/**
616616
* The maximum zoom level the map can be shown at.
@@ -621,7 +621,7 @@ MGL_EXPORT IB_DESIGNABLE
621621
* The default maximumZoomLevel is 22. The upper bound for this property
622622
* is 25.5.
623623
*/
624-
@property (nonatomic) IBInspectable double maximumZoomLevel;
624+
@property (nonatomic) double maximumZoomLevel;
625625

626626
/**
627627
The heading of the map, measured in degrees clockwise from true north.

0 commit comments

Comments
 (0)