Skip to content

Commit

Permalink
Add the changeLog item and improve the previewing mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanMa1991 committed Feb 11, 2022
1 parent 7618c07 commit df9b28b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -10,6 +10,7 @@
* Renamed the `NextBannerView.update(for:)`, `NextBannerView.show()` and `NextBannerView.hide()` methods to `NextBannerView.update(for:animated:duration:completion:)`, `NextBannerView.show(animated:duration:completion:)`, `NextBannerView.hide(animated:duration:completion:)`, respectively. ([#3704](https://github.com/mapbox/mapbox-navigation-ios/pull/3704))
* Renamed the `LanesView.update(for:)`, `LanesView.show()` and `LanesView.hide()` methods to `LanesView.update(for:animated:duration:completion:)`, `LanesView.show(animated:duration:completion:)`, `LanesView.hide(animated:duration:completion:)`, respectively. ([#3704](https://github.com/mapbox/mapbox-navigation-ios/pull/3704))
* Added the `InstructionsCardContainerView.separatorColor` and `InstructionsCardContainerView.highlightedSeparatorColor` to be able to change instruction card's separator colors. ([#3704](https://github.com/mapbox/mapbox-navigation-ios/pull/3704))
* Fixed an issue where the top banner instruction shows empty remaining steps in pull-down table when user is on final step. ([#3729](https://github.com/mapbox/mapbox-navigation-ios/pull/3729))

### Location tracking

Expand Down
7 changes: 2 additions & 5 deletions Sources/MapboxNavigation/TopBannerViewController.swift
Expand Up @@ -350,11 +350,8 @@ extension TopBannerViewController: NavigationComponent {

if progress.remainingSteps.count < 2 {
instructionsBannerView.showStepIndicator = false

if let steps = stepsViewController {
isDisplayingSteps = false
steps.dismiss()
stepsViewController = nil
if isDisplayingSteps {
dismissStepsTable()
}
} else {
instructionsBannerView.showStepIndicator = true
Expand Down

0 comments on commit df9b28b

Please sign in to comment.