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

[ios] fix compass font thinner than previous version on iOS 13 #15547

Merged
merged 5 commits into from
Sep 4, 2019

Conversation

m-stephen
Copy link
Contributor

@m-stephen m-stephen commented Sep 3, 2019

close: #14831

It seems that UIFontWeightLight on iOS13 is as thin as UIFontWeightUltraLight on iOS12.
This is a solution for fixing this issue.

We can wait to merge this PR until iOS13 released and let's see Apple could fix this issue or not.

@m-stephen m-stephen requested review from friedbunny and a team September 3, 2019 09:04
@m-stephen m-stephen added bug iOS Mapbox Maps SDK for iOS labels Sep 3, 2019
@friedbunny friedbunny added the needs changelog Indicates PR needs a changelog entry prior to merging. label Sep 3, 2019
Copy link
Contributor

@friedbunny friedbunny left a comment

Choose a reason for hiding this comment

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

A few requests:

  • Please post a screenshot comparing iOS 12, iOS 13 before, and iOS 13 after.
  • Suggested changelog entry: * Fixed an issue with the appearance of the compass text in iOS 13. ([#15547](https://github.com/mapbox/mapbox-gl-native/pull/15547))
  • I also suggested merged a few fixes for formatting nits.

Other comments:

  • We should file a radar for this, but I don’t think we can expect it to be fixed soon (if ever). If we file a radar now, we should add an inline comment in this PR.
  • This would be a good candidate for image comparison tests (which we do not have yet), given that it’s an isolated view that can be rendered accurately offline.

platform/ios/src/MGLCompassButton.mm Outdated Show resolved Hide resolved
platform/ios/src/MGLCompassButton.mm Outdated Show resolved Hide resolved
platform/ios/src/MGLCompassButton.mm Outdated Show resolved Hide resolved
@m-stephen
Copy link
Contributor Author

Update for screenshots:
iOS12:
image

Before this PR on iOS13:
image

After this PR on iOS13:
image

@m-stephen m-stephen requested a review from friedbunny September 4, 2019 03:05
@m-stephen m-stephen removed the needs changelog Indicates PR needs a changelog entry prior to merging. label Sep 4, 2019
@friedbunny friedbunny merged commit b07217b into master Sep 4, 2019
@friedbunny friedbunny deleted the stephen-ios13-compass branch September 4, 2019 18:29
@friedbunny friedbunny added this to the release-ristretto milestone Sep 4, 2019
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.

iOS 13: Compass text weight is too thin
2 participants