This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Declared these IB-specific inspectables in a separate category that developers are not expected to import. Currently these inspectables are order-dependent due to #1181. Ref #929
- Loading branch information
Showing
4 changed files
with
103 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#import "MGLMapView.h" | ||
|
||
@interface MGLMapView (IBAdditions) | ||
|
||
// Core properties that can be manipulated in the Attributes inspector in | ||
// Interface Builder. These redeclarations merely add the IBInspectable keyword. | ||
// They appear here to ensure that they appear above the convenience properties; | ||
// inspectables declared in MGLMapView.h are always sorted before those in | ||
// MGLMapView+IBAdditions.h, due to ASCII sort order. | ||
|
||
@property (nonatomic) IBInspectable NSString *accessToken; | ||
@property (nonatomic) IBInspectable NSString *mapID; | ||
|
||
// Some convenience properties related to the initial viewport. These properties | ||
// are not meant to be used outside of Interface Builder. latitude and longitude | ||
// are backed by properties of type CLLocationDegrees, but these declarations | ||
// must use the type double because Interface Builder is unaware that | ||
// CLLocationDegrees is a typedef for double. | ||
|
||
/// Initial latitude at which the receiver is centered. | ||
@property (nonatomic) IBInspectable double latitude; | ||
|
||
/// Initial longitude at which the receiver is centered. | ||
@property (nonatomic) IBInspectable double longitude; | ||
|
||
/// Initial zoom level of the receiver. | ||
@property (nonatomic) IBInspectable double zoomLevel; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters