@complexify/expo-mapbox-navigation 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -421,22 +421,17 @@ class ExpoMapboxNavigationViewController: UIViewController {
|
|
421
421
|
navigationOptions: navigationOptions
|
422
422
|
)
|
423
423
|
|
424
|
-
|
424
|
+
topBanner.instructionsBannerView.primaryLabel.textColor = topBannerPrimaryTextColor ?? UIColor(hex: "#000000")
|
425
|
+
topBanner.instructionsBannerView.secondaryLabel.textColor = topBannerSecondaryTextColor ?? UIColor(hex: "#666666")
|
426
|
+
topBanner.instructionsBannerView.distanceLabel.textColor = topBannerDistanceTextColor ?? UIColor(hex: "#666666")
|
427
|
+
topBanner.instructionsBannerView.separatorView.backgroundColor = topBannerSeparatorColor ?? UIColor(hex: "#EEEEEE")
|
425
428
|
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
instructionsView.secondaryLabel.textColor = topBannerSecondaryTextColor ?? UIColor(hex: "#666666")
|
430
|
-
instructionsView.distanceLabel.textColor = topBannerDistanceTextColor ?? UIColor(hex: "#666666")
|
431
|
-
instructionsView.separatorView.backgroundColor = topBannerSeparatorColor ?? UIColor(hex: "#EEEEEE")
|
432
|
-
|
433
|
-
let bottomView = navigationView.bottomBannerView
|
434
|
-
bottomView.timeRemainingLabel.textColor = bottomBannerTimeRemainingTextColor ?? UIColor(hex: "#000000")
|
435
|
-
bottomView.distanceRemainingLabel.textColor = bottomBannerDistanceRemainingTextColor ?? UIColor(hex: "#666666")
|
436
|
-
bottomView.arrivalTimeLabel.textColor = bottomBannerArrivalTimeTextColor ?? UIColor(hex: "#666666")
|
429
|
+
bottomBanner.timeRemainingLabel.textColor = bottomBannerTimeRemainingTextColor ?? UIColor(hex: "#000000")
|
430
|
+
bottomBanner.distanceRemainingLabel.textColor = bottomBannerDistanceRemainingTextColor ?? UIColor(hex: "#666666")
|
431
|
+
bottomBanner.arrivalTimeLabel.textColor = bottomBannerArrivalTimeTextColor ?? UIColor(hex: "#666666")
|
437
432
|
|
438
|
-
let navigationMapView =
|
439
|
-
navigationMapView
|
433
|
+
let navigationMapView = navigationViewController.navigationMapView
|
434
|
+
navigationMapView.puckType = .puck2D(.navigationDefault)
|
440
435
|
|
441
436
|
let style = currentMapStyle != nil ? StyleURI(rawValue: currentMapStyle!) : StyleURI.streets
|
442
437
|
navigationMapView!.mapView.mapboxMap.loadStyle(style!, completion: { _ in
|
@@ -483,7 +478,7 @@ class ExpoMapboxNavigationViewController: UIViewController {
|
|
483
478
|
}
|
484
479
|
|
485
480
|
// 2. Information Stack
|
486
|
-
let infoStack = navigationView.informationStackView
|
481
|
+
let infoStack = navigationViewController.navigationView.informationStackView
|
487
482
|
infoStack.backgroundColor = informationStackBackgroundColor ?? UIColor(hex: "#FFFFFF")
|
488
483
|
for view in infoStack.arrangedSubviews {
|
489
484
|
if let label = view as? UILabel {
|
@@ -492,19 +487,19 @@ class ExpoMapboxNavigationViewController: UIViewController {
|
|
492
487
|
}
|
493
488
|
|
494
489
|
// 4. Resume Button
|
495
|
-
let resumeButton = navigationView.resumeButton
|
490
|
+
let resumeButton = navigationViewController.navigationView.resumeButton
|
496
491
|
resumeButton.backgroundColor = resumeButtonBackgroundColor ?? UIColor(hex: "#FFFFFF")
|
497
492
|
resumeButton.setTitleColor(resumeButtonTextColor ?? UIColor(hex: "#000000"), for: UIControl.State.normal)
|
498
493
|
|
499
494
|
// 5. Speed Limit View
|
500
|
-
let speedLimitView = navigationView.speedLimitView
|
495
|
+
let speedLimitView = navigationViewController.navigationView.speedLimitView
|
501
496
|
speedLimitView.backgroundColor = speedLimitBackgroundColor ?? UIColor(hex: "#FFFFFF")
|
502
497
|
if let speedLabel = speedLimitView.subviews.first as? UILabel {
|
503
498
|
speedLabel.textColor = speedLimitTextColor ?? UIColor(hex: "#000000")
|
504
499
|
}
|
505
500
|
|
506
501
|
// 6. Floating Stack
|
507
|
-
let floatingStack = navigationView.floatingStackView
|
502
|
+
let floatingStack = navigationViewController.navigationView.floatingStackView
|
508
503
|
floatingStack.backgroundColor = floatingStackBackgroundColor ?? UIColor(hex: "#FFFFFF")
|
509
504
|
for button in floatingStack.arrangedSubviews {
|
510
505
|
if let floatingButton = button as? UIButton {
|
@@ -513,7 +508,7 @@ class ExpoMapboxNavigationViewController: UIViewController {
|
|
513
508
|
}
|
514
509
|
|
515
510
|
// 8. Way Name Label
|
516
|
-
let wayNameView = navigationView.wayNameView
|
511
|
+
let wayNameView = navigationViewController.navigationView.wayNameView
|
517
512
|
wayNameView.backgroundColor = wayNameViewBackgroundColor ?? UIColor(hex: "#FFFFFF")
|
518
513
|
wayNameView.label.textColor = wayNameViewTextColor ?? UIColor(hex: "#000000")
|
519
514
|
}
|