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

Conversation

friedbunny
Copy link
Contributor

@friedbunny friedbunny commented Jul 24, 2017

Partially addresses #9597, where subviews of MGLMapView have their custom tint colors unnecessarily overridden. A full fix for that issue would be a breaking change, so this only attempts to fix the attribution button.

UIButton can be relied on to automatically update its tint to match its parent view, if it still inherits a tint from that parent.

This issue was brought to the fore because of the switch to UIAlertController in v3.6.0 (#8373), which triggers -tintColorDidChange calls on presentation and dismissal.

/cc @fabian-guerra @1ec5 @boundsj @jmkiley

@friedbunny friedbunny added bug iOS Mapbox Maps SDK for iOS labels Jul 24, 2017
@friedbunny friedbunny added this to the ios-v3.6.1 milestone Jul 24, 2017
@friedbunny friedbunny self-assigned this Jul 24, 2017
@friedbunny friedbunny requested a review from fabian-guerra July 24, 2017 23:29
Copy link
Contributor

@fabian-guerra fabian-guerra left a comment

Choose a reason for hiding this comment

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

👍🏼

@friedbunny friedbunny merged commit dcd9a38 into release-ios-v3.6.0-android-v5.1.0 Jul 25, 2017
@friedbunny friedbunny deleted the fb-attribution-tint-unforcening branch July 25, 2017 17:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants