[ios, macos] Deprecate methods in favor of new completion handler versions

This commit is contained in:
Jason Wray
2019-06-18 12:13:43 -07:00
parent a16c67d953
commit 8a9567e072
8 changed files with 42 additions and 49 deletions

View File

@@ -626,8 +626,8 @@ MGL_EXPORT IB_DESIGNABLE
@property (nonatomic, assign) NSEdgeInsets contentInsets;
/**
Sets the distance from the edges of the map view’s frame to the edges of the
map view’s logical viewport, with an optional transition animation.
Deprecated. Sets the distance from the edges of the map view’s frame to the
edges of the map view’s logical viewport, with an optional transition animation.
When the value of this property is equal to `NSEdgeInsetsZero`, viewport
properties such as `centerCoordinate` assume a viewport that matches the map
@@ -646,7 +646,7 @@ MGL_EXPORT IB_DESIGNABLE
the content insets or `NO` if you want the map to inset the content
immediately.
*/
- (void)setContentInsets:(NSEdgeInsets)contentInsets animated:(BOOL)animated;
- (void)setContentInsets:(NSEdgeInsets)contentInsets animated:(BOOL)animated __attribute__((deprecated("Use `-setContentInsets:animated:completionHandler:` instead.")));
/**
Sets the distance from the edges of the map view’s frame to the edges of the