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

Update SpeedLimitView to the new design #3809

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

jill-cardamon
Copy link
Contributor

@jill-cardamon jill-cardamon commented Apr 4, 2022

Description

This PR is to implement the SpeedLimitView redesign.

Implementation

  • Add method to draw new design while maintaining backwards compatibility
  • Adjust string for translation

Screenshots or Gifs

@jill-cardamon jill-cardamon added the UI Work related to visual components, Android Auto, Camera, 3D, voice, etc. label Apr 4, 2022
@jill-cardamon jill-cardamon self-assigned this Apr 4, 2022
@mapbox-github-ci-issues-public-1

No breaking changes detected in MapboxCoreNavigation

@mapbox-github-ci-issues-public-1

No breaking changes detected in MapboxNavigation

@@ -227,7 +227,7 @@
"ROUTE_QUALITY_ROADS_TOO_NARROW_FEEDBACK" = "Route had roads too narrow to pass";

/* Label above the speed limit in an MUTCD-style speed limit sign. Keep as short as possible. */
"SPEED_LIMIT_LEGEND" = "Max";
"SPEED_LIMIT_LEGEND" = "Speed Limit";
Copy link
Contributor

Choose a reason for hiding this comment

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

Is Android following similar approach? If so, do they localize this string to other languages as well? Can we re-use them?

@@ -134,8 +136,13 @@ public class SpeedLimitView: UIView {

switch signStandard {
Copy link
Contributor

Choose a reason for hiding this comment

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

Will you cover in scope of current PR drawing current speed as well?

@@ -91,6 +91,82 @@ public class SpeedLimitStyleKit : NSObject {

}

@objc dynamic public class func drawMUTCDForUS(frame targetFrame: CGRect = CGRect(x: 0, y: 0, width: 68, height: 85), resizing: ResizingBehavior = .aspectFit, signBackColor: UIColor = UIColor(red: 1.000, green: 1.000, blue: 1.000, alpha: 1.000), strokeColor: UIColor = UIColor(red: 0.000, green: 0.000, blue: 0.000, alpha: 1.000), limit: String = "50", legend: String = "SPEED LIMIT") {
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems to have issue with the frame size in CarPlay in active navigation. It would lead to the loss of the CompassView and the SpeedLimitView. And I think we should make the width of the SpeedLimitView as same as the CompassView in visualization on CarPlay with the new design.

@jill-cardamon jill-cardamon marked this pull request as draft May 27, 2022 18:21
@jill-cardamon jill-cardamon force-pushed the jill/speedLimitViewRedesign-currentSpeed branch from 52d360e to 2ff373e Compare August 8, 2022 15:31
@mapbox-github-ci-issues-public-1

Breaking Changes in MapboxNavigation

Breaking API Changes

SpeedLimitStyleKit

  • removed source.lang.swift.decl.function.method.class: drawMUTCD(frame:resizing:signBackColor:strokeColor:limit:legend:) in SpeedLimitStyleKit

@mapbox-github-ci-issues-public-1

Breaking Changes in MapboxNavigation

Breaking API Changes

SpeedLimitStyleKit

  • removed source.lang.swift.decl.function.method.class: drawMUTCD(frame:resizing:signBackColor:strokeColor:limit:legend:) in SpeedLimitStyleKit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UI Work related to visual components, Android Auto, Camera, 3D, voice, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants