diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2015-11-20 01:10:24 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2015-11-20 11:31:46 -0800 |
commit | 8a0bce780847546c161670420e4d0f1e3a6cbdca (patch) | |
tree | 4a5e1301af2392ddcd390fbe339bda54424ce91c | |
parent | b3dbdb389ff712ace00857e3e72894f0bb3afe3a (diff) | |
download | qtlocation-mapboxgl-8a0bce780847546c161670420e4d0f1e3a6cbdca.tar.gz |
Discourage code usage of styleURL__ property
A hack atop the hack added in #2632. Pre-declare `styleURL__` with an attribute that prevents it from appearing in code completion suggestions, while leaving it available to Interface Builder, which is unable to parse attributes.
-rw-r--r-- | include/mbgl/ios/MGLMapView.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mbgl/ios/MGLMapView.h b/include/mbgl/ios/MGLMapView.h index 779faa4e9b..83ef395cf9 100644 --- a/include/mbgl/ios/MGLMapView.h +++ b/include/mbgl/ios/MGLMapView.h @@ -234,6 +234,9 @@ IB_DESIGNABLE * To display the default style, set this property to `nil`. */ @property (nonatomic, null_resettable) NSURL *styleURL; +/* Discourage programmatic usage of this IB-only property. Interface Builder skips over this declaration because it is unable to parse attributes. See the real declaration in MGLMapView+IBAdditions.h. */ +@property (nonatomic, nullable) IBInspectable NSString *styleURL__ __attribute__((unavailable("styleURL__ is for use within Interface Builder only. Use styleURL in code."))); + /** Currently active style classes, represented as an array of string identifiers. */ @property (nonatomic) NS_ARRAY_OF(NSString *) *styleClasses; |