Skip to content

[CarPlay] Adds custom map buttons delegate for activity navigating. - #1962

Merged
vincethecoder merged 20 commits into
masterfrom
kobe/hide_feedback
Feb 8, 2019
Merged

vincethecoder merged 20 commits into
masterfrom
kobe/hide_feedback

Conversation

@vincethecoder

@vincethecoder vincethecoder commented Feb 5, 2019 •

Copy link
Copy Markdown
Contributor

This allows developers to provide custom leading/trailing bar buttons and template buttons displayed on the map. Previously, developers were unable to customize the map template's trailing bottom buttons. This effort addresses that issue.

Resolves #1963

TODO

  • Update Change log
  • Update Localization
  • Update Create Tests

/cc @mapbox/navigation-ios

@vincethecoder vincethecoder added the CarPlay Bugs, improvements and feature requests on Apple CarPlay label Feb 5, 2019
@vincethecoder vincethecoder self-assigned this Feb 5, 2019
@akitchen

akitchen commented Feb 6, 2019

Copy link
Copy Markdown
Contributor
  • Update Tests

Is this tested at all? Have a look at #1955 and let's consider adopting a testing pattern for this.

Comment thread Example/AppDelegate+CarPlay.swift Resolved
…pers to provide their very own map buttons based on a user's current activity on CarPlay. Changed the Example app to reflect these changes, accompanied with an example of how to use this new delegate. Made changes to all classes affected by these new changes. Added documentation on the public variables and functions that reside in the CarPlayMapViewController.

Co-authored-by: Jerrad Thramer <[email protected]>
Co-authored-by: Vincent Sam <[email protected]>

@JThramer JThramer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great, Although I'd like to see us extract all button creation out into functions.

Comment thread Example/AppDelegate+CarPlay.swift Resolved
Comment thread MapboxNavigation/CarPlayManager.swift Resolved
Comment thread CHANGELOG.md Resolved
Comment thread CHANGELOG.md Resolved
Comment thread MapboxNavigation/CarPlayManager.swift Resolved
Comment thread MapboxNavigation/CarPlayManager.swift Resolved
vincethecoder and others added 5 commits February 8, 2019 01:34
…es. Updated localized strings and CarPlayManager delegate documentation.
Co-Authored-By: vincethecoder <[email protected]>
…panning CarPlay activity enumeration to offer the ability to customize the trailing map buttons displayed on the template in pan mode. Added a new button for dismissing pan mode on CarPlay.
Comment thread MapboxNavigation/CarPlayManager.swift Resolved
Comment thread MapboxNavigation/CarPlayManager.swift Resolved
Comment thread MapboxNavigation/CarPlayManager.swift Resolved
…text. Added a CarPlayMapViewController computed property derived from the carWindow's rootViewController. Reverted the new parameter introduced in CarPlayManager delegate's mapbuttons method. Updated the CarPlayManager test to reflect changes made to the delegate method that retrieves map buttons.
…ization of the map template control layer and new buttons that can be found in the CarPlayManager and the CarPlayMapViewController.

@1ec5 1ec5 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think it would’ve been nice for the example to end up with some code that uses one of these new CarPlayMapViewController methods, but overall the PR looks good to go.

@vincethecoder
vincethecoder merged commit 61ac4b9 into master Feb 8, 2019
@1ec5
1ec5 deleted the kobe/hide_feedback branch December 5, 2019 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CarPlay Bugs, improvements and feature requests on Apple CarPlay

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants