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

[Bug]: Unable to style GenericRouteShield. #3336

Closed
MaximAlien opened this issue Sep 8, 2021 · 0 comments · Fixed by #3341
Closed

[Bug]: Unable to style GenericRouteShield. #3336

MaximAlien opened this issue Sep 8, 2021 · 0 comments · Fixed by #3341
Assignees
Labels
bug Something isn’t working UI Work related to visual components, Android Auto, Camera, 3D, voice, etc.
Milestone

Comments

@MaximAlien
Copy link
Contributor

Mapbox Navigation SDK version

2.0.0-beta.25

Steps to reproduce

  1. Add such styling to CustomDayStyle and CustomNightStyle:
PrimaryLabel.appearance(whenContainedInInstancesOf: [InstructionsBannerView.self]).normalTextColor = UIColor.green
SecondaryLabel.appearance(whenContainedInInstancesOf: [InstructionsBannerView.self]).normalTextColor = UIColor.red
GenericRouteShield.appearance().foregroundColor = UIColor.blue
ExitView.appearance().foregroundColor = UIColor.yellow
  1. Run Styled UI example with route, which includes route shields.

Expected behavior

It is expected that route shields are styled like this:

Simulator Screen Shot - iPod touch (7th generation) - 2021-09-07 at 18 16 42

Actual behavior

Simulator Screen Shot - iPod touch (7th generation) - 2021-09-07 at 18 18 03

Is this a one-time issue or a repeatable issue?

repeatable

@MaximAlien MaximAlien added bug Something isn’t working UI Work related to visual components, Android Auto, Camera, 3D, voice, etc. labels Sep 8, 2021
@MaximAlien MaximAlien added this to the v2.0.0 (GA) milestone Sep 8, 2021
@MaximAlien MaximAlien self-assigned this Sep 8, 2021
@MaximAlien MaximAlien linked a pull request Sep 9, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn’t working UI Work related to visual components, Android Auto, Camera, 3D, voice, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant