Skip to content
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

Swipeable Banner Custom UI #1772

Merged
merged 5 commits into from
Oct 10, 2018
Merged

Swipeable Banner Custom UI #1772

merged 5 commits into from
Oct 10, 2018

Conversation

nitaliano
Copy link
Contributor

  • Adds InstructionsBannerView.showStepIndicator so we have control over whether we want to show the indicator in our custom UI or not. Not everyone will show the steps list from the top so this needs to be configurable.
  • Makes BaseInstructionsBannerView.init(frame: CGRect) public so we can actually initialize this outside of the SDK.
  • Makes NavigationMapView.enableFrameByFrameCourseViewTracking public so when you want to move the map camera in navigation, this can help prevent the puck from flying across the screen.

@mapbox/navigation-ios

Nick added 4 commits October 10, 2018 13:40
Right now you're forced to always show the indicator even if your
custom UI does not add it, this property allows this to be configurable
so if you set this to false it will never appear
Without this method being public, you cannot build a custom navigation UI
and move the map camera around without the puck flying around everywhere,
this puts control in the developers hands
@nitaliano nitaliano changed the title Swipeable banner custom Swipeable Banner Custom UI Oct 10, 2018
@@ -48,9 +48,18 @@ open class BaseInstructionsBannerView: UIControl {
@IBInspectable
public var swipeable: Bool = false

@IBInspectable
public var showStepIndicator: Bool = true {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please add a line in the changelog for this addition?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sorry forgot will update!

@nitaliano nitaliano merged commit 2eed21b into master Oct 10, 2018
@nitaliano nitaliano deleted the swipeable-banner-custom branch October 10, 2018 23:50
@akitchen akitchen added this to the v0.22.2 milestone Oct 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants