summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLRendererConfiguration.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/darwin/src/MGLRendererConfiguration.h')
-rw-r--r--platform/darwin/src/MGLRendererConfiguration.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLRendererConfiguration.h b/platform/darwin/src/MGLRendererConfiguration.h
index d5b6527d7e..ea13582488 100644
--- a/platform/darwin/src/MGLRendererConfiguration.h
+++ b/platform/darwin/src/MGLRendererConfiguration.h
@@ -1,3 +1,4 @@
+#import "MGLFoundation.h"
#import <Foundation/Foundation.h>
#import <mbgl/storage/default_file_source.hpp>
#import <mbgl/renderer/mode.hpp>
@@ -8,6 +9,7 @@ NS_ASSUME_NONNULL_BEGIN
The MGLRendererConfiguration object represents configuration values for the
renderer.
*/
+MGL_EXPORT
@interface MGLRendererConfiguration : NSObject
/** Returns an instance of the current renderer configuration. */
@@ -39,7 +41,9 @@ NS_ASSUME_NONNULL_BEGIN
A Boolean value indicating whether symbol layers may enable per-source symbol
collision detection.
- Set `MGLCollisionBehaviorPre4_0` in your containing app's Info.plist.
+ Set `MGLCollisionBehaviorPre4_0` in your containing app's Info.plist or by using
+ `[[NSUserDefaults standardUserDefaults] setObject:@(YES) forKey:@"MGLCollisionBehaviorPre4_0"]`.
+ If both are set, the value from `NSUserDefaults` takes priority.
Setting this property to `YES` in the plist results in symbol layers only running
collision detection against other symbol layers that are part of the same source.