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 12:03:16 -0800 |
commit | 06d400fb9a9a4f612f9fcd8ddd7a68964d01e27e (patch) | |
tree | a15940d13bea7490b8a0f80cfd73f120dba15b69 /include | |
parent | b791d1fb81d4e15922313aef321b9ae42384d43b (diff) | |
download | qtlocation-mapboxgl-06d400fb9a9a4f612f9fcd8ddd7a68964d01e27e.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.
Diffstat (limited to 'include')
-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; |