summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--platform/darwin/src/MGLForegroundStyleLayer.h3
-rw-r--r--platform/darwin/src/MGLStyleLayer.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLForegroundStyleLayer.h b/platform/darwin/src/MGLForegroundStyleLayer.h
index cb98876810..642dde4992 100644
--- a/platform/darwin/src/MGLForegroundStyleLayer.h
+++ b/platform/darwin/src/MGLForegroundStyleLayer.h
@@ -18,6 +18,9 @@ NS_ASSUME_NONNULL_BEGIN
#pragma mark Initializing a Style Layer
+- (instancetype)init __attribute__((unavailable("Use -initWithIdentifier:source: instead.")));
+- (instancetype)initWithIdentifier:(NSString *)identifier __attribute__((unavailable("Use -initWithIdentifier:source: instead.")));
+
/**
Returns a foreground style layer initialized with an identifier and source.
diff --git a/platform/darwin/src/MGLStyleLayer.h b/platform/darwin/src/MGLStyleLayer.h
index cfdc03962f..4032be9297 100644
--- a/platform/darwin/src/MGLStyleLayer.h
+++ b/platform/darwin/src/MGLStyleLayer.h
@@ -22,6 +22,8 @@ NS_ASSUME_NONNULL_BEGIN
#pragma mark Initializing a Style Layer
+- (instancetype)init __attribute__((unavailable("Use -initWithIdentifier: instead.")));
+
/**
Returns a style layer object initialized with the given identifier.