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

[ios] Don't force the attribution button tint color to update #9598

Merged
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions platform/ios/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Mapbox welcomes participation and contributions from everyone. Please read [CONT
## 3.6.1

* Reduced the size of the dynamic framework by optimizing symbol visibility. ([#7604](https://github.com/mapbox/mapbox-gl-native/pull/7604))
* Fixed an issue where the attribution button would have its custom tint color reset when the map view received a tint color change notification, such as when an alert controller was presented. ([#9598](https://github.com/mapbox/mapbox-gl-native/pull/9598))

## 3.6.0 - June 29, 2017

Expand Down
6 changes: 4 additions & 2 deletions platform/ios/src/MGLMapView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1144,8 +1144,10 @@ - (void)tintColorDidChange

- (void)updateTintColorForView:(UIView *)view
{
// stop at recursing container & annotation views (#8522)
if ([view isEqual:self.annotationContainerView]) return;
// Don't update:
// - annotation views
// - attribution button (handled automatically)
if ([view isEqual:self.annotationContainerView] || [view isEqual:self.attributionButton]) return;

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

Expand Down