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

Fold CarPlay-specific styles into main styles #1695

Merged
merged 1 commit into from
Sep 15, 2018

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Sep 15, 2018

Removed CarPlayDayStyle and CarPlayNightStyle in favor of using DayStyle and NightStyle in all user interface idioms. Vary ExitView and GenericShieldView by idiom.

Added a Style.previewMapStyleURL property, which is used by CarPlayMapViewController but can also be used in the future for the preview view controller proposed by #808. In the meantime, the property is visible to applications for custom preview view controller implementations.

/cc @mapbox/navigation-ios

@1ec5 1ec5 added op-ex Refactoring, Tech Debt or any other operational excellence work. CarPlay Bugs, improvements and feature requests on Apple CarPlay labels Sep 15, 2018
@1ec5 1ec5 self-assigned this Sep 15, 2018
*/
@objc open var mapStyleURL: URL = MGLStyle.navigationGuidanceDayStyleURL

#if canImport(CarPlay)
Copy link
Contributor

@frederoni frederoni Sep 15, 2018

Choose a reason for hiding this comment

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

Do we need to wrap this block in a canImport? The URL is still available iOS < 12.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The #else block below is identical except for the documentation comment. I figured it would make little sense to talk about CarPlay in the documentation if CarPlay is unavailable.

Copy link
Contributor

@frederoni frederoni left a comment

Choose a reason for hiding this comment

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

Looks great.

@1ec5 1ec5 merged commit 56e290b into carplay Sep 15, 2018
@1ec5 1ec5 deleted the 1ec5-carplay-merge-styles branch September 15, 2018 22:21
@1ec5 1ec5 added this to the v0.21.0 milestone Sep 17, 2018
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 op-ex Refactoring, Tech Debt or any other operational excellence work.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants