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

Commit

Permalink
fixes #8522: don't alter tint color on annotation views
Browse files Browse the repository at this point in the history
  • Loading branch information
incanus committed Apr 20, 2017
1 parent 0d1d0ef commit 971d324
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions platform/ios/src/MGLMapView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1162,6 +1162,9 @@ - (void)tintColorDidChange

- (void)updateTintColorForView:(UIView *)view
{
// stop at recursing container & annotation views (#8522)
if ([view isEqual:self.annotationContainerView]) return;

if ([view respondsToSelector:@selector(setTintColor:)]) view.tintColor = self.tintColor;

for (UIView *subview in view.subviews) [self updateTintColorForView:subview];
Expand Down

0 comments on commit 971d324

Please sign in to comment.