diff --git a/include/mbgl/osx/MGLMapView+IBAdditions.h b/include/mbgl/osx/MGLMapView+IBAdditions.h index 8dacd5ec7..b524328c5 100644 --- a/include/mbgl/osx/MGLMapView+IBAdditions.h +++ b/include/mbgl/osx/MGLMapView+IBAdditions.h @@ -6,19 +6,27 @@ NS_ASSUME_NONNULL_BEGIN @interface MGLMapView (IBAdditions) +#if TARGET_INTERFACE_BUILDER + // 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. -#if TARGET_INTERFACE_BUILDER // We want this property to look like a URL bar in the Attributes inspector, but // just calling it styleURL would violate Cocoa naming conventions and conflict // with the existing NSURL property. Fortunately, IB strips out the two // underscores for display. + +/** + URL of the style currently displayed in the receiver. + + The URL may be a full HTTP or HTTPS URL, a Mapbox URL indicating the style’s + map ID (`mapbox://styles//