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

fixes #8522: don't alter tint color on annotation views #8789

Merged
merged 1 commit into from
Apr 21, 2017
Merged
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
fixes #8522: don't alter tint color on annotation views
  • Loading branch information
incanus committed Apr 20, 2017
commit 971d32426a358f3d14087ccc698cd831365fe89d
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