Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Deprecate style methods #7776

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions platform/darwin/src/MGLStyle.h
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ static const NSInteger MGLStyleDefaultVersion = 9;
/**
Currently active style classes, represented as an array of string identifiers.
*/
@property (nonatomic) NS_ARRAY_OF(NSString *) *styleClasses;
@property (nonatomic) NS_ARRAY_OF(NSString *) *styleClasses __attribute__((deprecated("This property will be removed.")));

/**
Returns a Boolean value indicating whether the style class with the given
Expand All @@ -370,14 +370,14 @@ static const NSInteger MGLStyleDefaultVersion = 9;
@param styleClass The style class to query for.
@return Whether the style class is currently active.
*/
- (BOOL)hasStyleClass:(NSString *)styleClass;
- (BOOL)hasStyleClass:(NSString *)styleClass __attribute__((deprecated("This method will be removed in a future release. Runtime styling is :sunglasses:")));
Copy link
Contributor

@boundsj boundsj Jan 18, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should remove the reference to runtime styling and 😎 here


/**
Activates the style class with the given identifier.

@param styleClass The style class to activate.
*/
- (void)addStyleClass:(NSString *)styleClass;
- (void)addStyleClass:(NSString *)styleClass __attribute__((deprecated("This method will be removed in a future release. Runtime styling is :sunglasses:")));

/**
Deactivates the style class with the given identifier.
Expand All @@ -392,7 +392,7 @@ static const NSInteger MGLStyleDefaultVersion = 9;

@param styleClass The style class to deactivate.
*/
- (void)removeStyleClass:(NSString *)styleClass;
- (void)removeStyleClass:(NSString *)styleClass __attribute__((deprecated("This method will be removed in a future release. Runtime styling is :sunglasses:")));

#pragma mark Managing a Style’s Images

Expand Down