summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLTypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/darwin/src/MGLTypes.h')
-rw-r--r--platform/darwin/src/MGLTypes.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLTypes.h b/platform/darwin/src/MGLTypes.h
index 2579451f2d..f63c602a53 100644
--- a/platform/darwin/src/MGLTypes.h
+++ b/platform/darwin/src/MGLTypes.h
@@ -12,6 +12,14 @@
#define _Nonnull
#endif
+#if TARGET_OS_IPHONE
+@class UIColor;
+#define MGLColor UIColor
+#else
+@class NSColor;
+#define MGLColor NSColor
+#endif
+
NS_ASSUME_NONNULL_BEGIN
/** Indicates an error occurred in the Mapbox SDK. */