diff options
author | Jason Wray <friedbunny@users.noreply.github.com> | 2019-09-03 13:01:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-03 13:01:26 -0700 |
commit | 3a6ac943295a680d1da13782b2fc190ea9171760 (patch) | |
tree | 3002839f809e1f91d50f6cdcc591c0665ade21f2 | |
parent | 7f6921ccffb4094b1fc250f37d94b5f541913d3d (diff) | |
download | qtlocation-mapboxgl-3a6ac943295a680d1da13782b2fc190ea9171760.tar.gz |
Apply suggestions from code review
-rw-r--r-- | platform/ios/src/MGLCompassButton.mm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/platform/ios/src/MGLCompassButton.mm b/platform/ios/src/MGLCompassButton.mm index 7882ded4f1..acb25a560c 100644 --- a/platform/ios/src/MGLCompassButton.mm +++ b/platform/ios/src/MGLCompassButton.mm @@ -65,10 +65,9 @@ [scaleImage drawInRect:{CGPointZero, scaleImage.size}]; UIFont *northFont; - if(@available(iOS 13, *)){ + if (@available(iOS 13.0, *)) { northFont = [UIFont systemFontOfSize:11 weight:UIFontWeightLight]; - } - else{ + } else { northFont = [UIFont systemFontOfSize:11 weight:UIFontWeightUltraLight]; } |