From 9d368ea98d096c1eed2c1eb7edc4a37ff31b03b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Thu, 25 Aug 2016 21:59:55 -0700 Subject: [ios, macos] Mark MGLStyleLayer properties null_resettable If the property is unset, return the default value. Fixes #6126. --- platform/darwin/src/MGLBackgroundStyleLayer.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'platform/darwin/src/MGLBackgroundStyleLayer.h') diff --git a/platform/darwin/src/MGLBackgroundStyleLayer.h b/platform/darwin/src/MGLBackgroundStyleLayer.h index 43802bc250..3fbd7e3869 100644 --- a/platform/darwin/src/MGLBackgroundStyleLayer.h +++ b/platform/darwin/src/MGLBackgroundStyleLayer.h @@ -13,23 +13,23 @@ NS_ASSUME_NONNULL_BEGIN /** The color with which the background will be drawn. - If this property is set to `nil`, the layer uses an implicit default value of `blackColor`. + The default value of this property is `blackColor`. Set this property to `nil` to reset it to the default value. This property is only applied to the style if `backgroundPattern` is set to `nil`. Otherwise, it is ignored. */ -@property (nonatomic, nullable) id backgroundColor; +@property (nonatomic, null_resettable) id backgroundColor; /** Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). */ -@property (nonatomic, nullable) id backgroundPattern; +@property (nonatomic, null_resettable) id backgroundPattern; /** The opacity at which the background will be drawn. - If this property is set to `nil`, the layer uses an implicit default value of `1`. + The default value of this property is `1`. Set this property to `nil` to reset it to the default value. */ -@property (nonatomic, nullable) id backgroundOpacity; +@property (nonatomic, null_resettable) id backgroundOpacity; @end -- cgit v1.2.1