summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLCircleStyleLayer.h
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-08-26 22:05:48 -0700
committerMinh Nguyễn <mxn@1ec5.org>2016-08-26 22:27:55 -0700
commitf4be8260baa1e90e24ea066d0d3b28896cd138ad (patch)
tree8aaf5902637c45e0f49c0e0f7638dbe6129a5624 /platform/darwin/src/MGLCircleStyleLayer.h
parent35a1c01166f997deaa386bf30247e7cb1ed33e07 (diff)
downloadqtlocation-mapboxgl-f4be8260baa1e90e24ea066d0d3b28896cd138ad.tar.gz
[ios, macos] Specialize color properties by platform
Duplicate each color-typed property once per platform using conditional compilation macros. Let’s just hope we never have to throw CGColor into the mix.
Diffstat (limited to 'platform/darwin/src/MGLCircleStyleLayer.h')
-rw-r--r--platform/darwin/src/MGLCircleStyleLayer.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLCircleStyleLayer.h b/platform/darwin/src/MGLCircleStyleLayer.h
index e489bd4e53..7d2ef05848 100644
--- a/platform/darwin/src/MGLCircleStyleLayer.h
+++ b/platform/darwin/src/MGLCircleStyleLayer.h
@@ -29,12 +29,21 @@ typedef NS_ENUM(NSUInteger, MGLCircleStyleLayerCirclePitchScale) {
*/
@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> circleRadius;
+#if TARGET_OS_IPHONE
/**
The color of the circle.
- The default value of this property is `NSColor.blackColor` or `UIColor.blackColor`. Set this property to `nil` to reset it to the default value.
+ The default value of this property is `UIColor.blackColor`. Set this property to `nil` to reset it to the default value.
*/
@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> circleColor;
+#else
+/**
+ The color of the circle.
+
+ The default value of this property is `NSColor.blackColor`. Set this property to `nil` to reset it to the default value.
+ */
+@property (nonatomic, null_resettable) id <MGLStyleAttributeValue> circleColor;
+#endif
/**
Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.