New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update MapboxDirections, Maps, and SDWebImage #1040
Conversation
ba6a7fa
to
04e984d
Compare
default: | ||
self.arrowView.text = "⬆️" | ||
} | ||
let direction = step.maneuverDirection |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This variable can be removed and you can just switch on step.maneuverDirection
31d3fc5
to
910c49d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
self.arrowView.text = "⬅️" | ||
case .uTurn: | ||
self.arrowView.text = "⤵️" | ||
default: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a subtle edge-case behavioral change here -- if step.maneuverDirection = nil
, the arrow text becomes "⬆️".
That may be desirable, I just thought i should point this out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think that’s fine. Our other option is ⏹. 😉
@@ -40,7 +40,7 @@ Pod::Spec.new do |s| | |||
s.requires_arc = true | |||
s.module_name = "MapboxCoreNavigation" | |||
|
|||
s.dependency "MapboxDirections.swift", "~> 0.15" | |||
s.dependency "MapboxDirections.swift", "~> 0.16.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the problem: we were specifying only the minor version, so the tadpole operator would float until the next major version (1.0). By contrast, Carthage intentionally violates semver by being more strict pre-1.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe worth changing now?
Fixes #1039
We released a couple of breaking changes MapboxDirections.swift 0.16.0 which haven't been adopted in this library yet but CocoaPods decided pull in 0.16.0 even though we specify
~> 0.15
unlike Carthage.@mapbox/navigation-ios 👀