@complexify/expo-mapbox-navigation 1.1.7 → 1.1.9

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.
@@ -4,31 +4,165 @@ import MapboxNavigationUIKit
4
4
  import UIKit
5
5
 
6
6
  class CustomDayStyle: StandardDayStyle {
7
+ // Speed Limit View
7
8
  var customSpeedLimitTextColor: UIColor?
8
9
  var customSpeedLimitBackgroundColor: UIColor?
9
10
  var customSpeedLimitBorderColor: UIColor?
11
+
12
+ // Bottom Banner
10
13
  var customBottomBannerBackgroundColor: UIColor?
11
14
  var customBottomBannerTimeRemainingTextColor: UIColor?
12
15
  var customBottomBannerDistanceRemainingTextColor: UIColor?
13
16
  var customBottomBannerArrivalTimeTextColor: UIColor?
17
+
18
+ // Way Name View
14
19
  var customWayNameBackgroundColor: UIColor?
20
+ var customWayNameTextColor: UIColor?
21
+
22
+ // Top Banner
15
23
  var customTopBannerBackgroundColor: UIColor?
16
24
  var customTopBannerPrimaryTextColor: UIColor?
17
25
  var customTopBannerSecondaryTextColor: UIColor?
18
26
  var customTopBannerDistanceTextColor: UIColor?
27
+ var customTopBannerSeparatorColor: UIColor?
28
+
29
+ // Resume Button
19
30
  var customResumeButtonBackgroundColor: UIColor?
20
31
  var customResumeButtonTextColor: UIColor?
21
32
  var customResumeButtonBorderColor: UIColor?
33
+
34
+ // Floating Buttons
22
35
  var customFloatingButtonsBackgroundColor: UIColor?
23
36
  var customFloatingButtonsBorderColor: UIColor?
24
37
  var customFloatingButtonsTextColor: UIColor?
25
38
 
26
- // New properties for maneuver view
39
+ // Maneuver View
27
40
  var customManeuverViewPrimaryColor: UIColor?
28
41
  var customManeuverViewSecondaryColor: UIColor?
29
- var customManeuverViewTextColor: UIColor?
30
- var customManeuverViewBackgroundColor: UIColor?
42
+ var customManeuverViewPrimaryColorHighlighted: UIColor?
43
+ var customManeuverViewSecondaryColorHighlighted: UIColor?
44
+
45
+ // Steps List
46
+ var customStepsBackgroundColor: UIColor?
47
+ var customStepsPrimaryTextColor: UIColor?
48
+ var customStepsSecondaryTextColor: UIColor?
49
+ var customStepsManeuverViewPrimaryColor: UIColor?
50
+ var customStepsManeuverViewSecondaryColor: UIColor?
51
+ var customStepsSeparatorColor: UIColor?
52
+
53
+ // Lane View
54
+ var customLaneViewBackgroundColor: UIColor?
55
+ var customLaneViewForegroundColor: UIColor?
56
+ var customLaneViewSeparatorColor: UIColor?
57
+
58
+ // Next Banner View
59
+ var customNextBannerBackgroundColor: UIColor?
60
+ var customNextBannerPrimaryTextColor: UIColor?
61
+ var customNextBannerSecondaryTextColor: UIColor?
62
+ var customNextBannerDistanceTextColor: UIColor?
31
63
 
64
+ // Progress Bar
65
+ var customProgressBarProgressColor: UIColor?
66
+ var customProgressBarBackgroundColor: UIColor?
67
+
68
+ // Exit View
69
+ var customExitViewForegroundColor: UIColor?
70
+ var customExitViewBorderColor: UIColor?
71
+ var customExitViewHighlightColor: UIColor?
72
+
73
+ // Route Shield
74
+ var customRouteShieldForegroundColor: UIColor?
75
+ var customRouteShieldBorderColor: UIColor?
76
+ var customRouteShieldHighlightColor: UIColor?
77
+
78
+ // Distance Labels
79
+ var customDistanceRemainingColor: UIColor?
80
+ var customDistanceUnitColor: UIColor?
81
+ var customDistanceValueColor: UIColor?
82
+
83
+ // Navigation Map
84
+ var customRouteAlternateColor: UIColor?
85
+ var customRouteAnnotationSelectedColor: UIColor?
86
+ var customRouteAnnotationColor: UIColor?
87
+ var customRouteAnnotationTextColor: UIColor?
88
+ var customRouteAnnotationSelectedTextColor: UIColor?
89
+ var customRouteAnnotationMoreTimeTextColor: UIColor?
90
+ var customRouteAnnotationLessTimeTextColor: UIColor?
91
+ var customWaypointColor: UIColor?
92
+ var customWaypointStrokeColor: UIColor?
93
+
94
+ // Instructions Card
95
+ var customInstructionsCardBackgroundColor: UIColor?
96
+ var customInstructionsCardSeparatorColor: UIColor?
97
+ var customInstructionsCardHighlightedSeparatorColor: UIColor?
98
+
99
+ // Feedback
100
+ var customFeedbackBackgroundColor: UIColor?
101
+ var customFeedbackTextColor: UIColor?
102
+ var customFeedbackCellColor: UIColor?
103
+ var customFeedbackSubtypeCircleColor: UIColor?
104
+ var customFeedbackSubtypeCircleOutlineColor: UIColor?
105
+
106
+ // End of Route
107
+ var customEndOfRouteButtonTextColor: UIColor?
108
+ var customEndOfRouteCommentBackgroundColor: UIColor?
109
+ var customEndOfRouteCommentTextColor: UIColor?
110
+ var customEndOfRouteContentBackgroundColor: UIColor?
111
+ var customEndOfRouteTitleTextColor: UIColor?
112
+
113
+ // Road Shield Colors
114
+ var customRoadShieldBlackColor: UIColor?
115
+ var customRoadShieldBlueColor: UIColor?
116
+ var customRoadShieldGreenColor: UIColor?
117
+ var customRoadShieldRedColor: UIColor?
118
+ var customRoadShieldWhiteColor: UIColor?
119
+ var customRoadShieldYellowColor: UIColor?
120
+ var customRoadShieldDefaultColor: UIColor?
121
+
122
+ // Button Properties
123
+ var customButtonTextColor: UIColor?
124
+ var customCancelButtonTintColor: UIColor?
125
+ var customPreviewButtonTintColor: UIColor?
126
+ var customStartButtonTintColor: UIColor?
127
+ var customDismissButtonBackgroundColor: UIColor?
128
+ var customDismissButtonTextColor: UIColor?
129
+ var customBackButtonBackgroundColor: UIColor?
130
+ var customBackButtonTintColor: UIColor?
131
+ var customBackButtonTextColor: UIColor?
132
+ var customBackButtonBorderColor: UIColor?
133
+
134
+ // Navigation View
135
+ var customNavigationViewBackgroundColor: UIColor?
136
+
137
+ // Distance Label Properties
138
+ var customDistanceLabelUnitTextColor: UIColor?
139
+ var customDistanceLabelValueTextColor: UIColor?
140
+
141
+ // Rating Control
142
+ var customRatingControlNormalColor: UIColor?
143
+ var customRatingControlSelectedColor: UIColor?
144
+
145
+ // Steps Properties
146
+ var customStepsBackgroundViewColor: UIColor?
147
+ var customStepsTableHeaderTintColor: UIColor?
148
+ var customStepsTableHeaderTextColor: UIColor?
149
+ var customStepInstructionsBackgroundColor: UIColor?
150
+ var customStepTableViewCellBackgroundColor: UIColor?
151
+
152
+ // Next Instruction
153
+ var customNextInstructionNormalTextColor: UIColor?
154
+ var customNextInstructionContainedTextColor: UIColor?
155
+
156
+ // Secondary Label Properties
157
+ var customSecondaryLabelNormalTextColor: UIColor?
158
+ var customSecondaryLabelFont: UIFont?
159
+
160
+ // Stylable Label
161
+ var customStylableLabelNormalTextColor: UIColor?
162
+
163
+ // CarPlay Properties
164
+ var customCarPlayCompassBackgroundColor: UIColor?
165
+
32
166
  required init() {
33
167
  super.init()
34
168
  styleType = .day
@@ -39,7 +173,7 @@ class CustomDayStyle: StandardDayStyle {
39
173
 
40
174
  let traitCollection = UIScreen.main.traitCollection
41
175
 
42
- // Speed limit customization
176
+ // Speed Limit View
43
177
  if let textColor = customSpeedLimitTextColor {
44
178
  SpeedLimitView.appearance(for: traitCollection).textColor = textColor
45
179
  }
@@ -50,12 +184,10 @@ class CustomDayStyle: StandardDayStyle {
50
184
  SpeedLimitView.appearance(for: traitCollection).regulatoryBorderColor = borderColor
51
185
  }
52
186
 
53
- // Bottom banner customization
187
+ // Bottom Banner
54
188
  if let bottomBannerBg = customBottomBannerBackgroundColor {
55
189
  BottomBannerView.appearance(for: traitCollection).backgroundColor = bottomBannerBg
56
190
  }
57
-
58
- // Bottom banner text colors
59
191
  if let timeRemainingColor = customBottomBannerTimeRemainingTextColor {
60
192
  TimeRemainingLabel.appearance(for: traitCollection).textColor = timeRemainingColor
61
193
  }
@@ -66,12 +198,15 @@ class CustomDayStyle: StandardDayStyle {
66
198
  ArrivalTimeLabel.appearance(for: traitCollection).textColor = arrivalTimeColor
67
199
  }
68
200
 
69
- // Way name customization
201
+ // Way Name View
70
202
  if let bgColor = customWayNameBackgroundColor {
71
203
  WayNameView.appearance(for: traitCollection).backgroundColor = bgColor.withAlphaComponent(0.8)
72
204
  }
205
+ if let textColor = customWayNameTextColor {
206
+ WayNameView.appearance(for: traitCollection).textColor = textColor
207
+ }
73
208
 
74
- // Top banner customization
209
+ // Top Banner
75
210
  if let topBannerBg = customTopBannerBackgroundColor {
76
211
  InstructionsBannerView.appearance(for: traitCollection).backgroundColor = topBannerBg
77
212
  }
@@ -84,8 +219,11 @@ class CustomDayStyle: StandardDayStyle {
84
219
  if let distanceTextColor = customTopBannerDistanceTextColor {
85
220
  DistanceLabel.appearance(for: traitCollection).textColor = distanceTextColor
86
221
  }
222
+ if let separatorColor = customTopBannerSeparatorColor {
223
+ SeparatorView.appearance(for: traitCollection).backgroundColor = separatorColor
224
+ }
87
225
 
88
- // Resume button customization
226
+ // Resume Button
89
227
  if let resumeBgColor = customResumeButtonBackgroundColor {
90
228
  ResumeButton.appearance(for: traitCollection).backgroundColor = resumeBgColor
91
229
  }
@@ -95,12 +233,10 @@ class CustomDayStyle: StandardDayStyle {
95
233
  if let resumeBorderColor = customResumeButtonBorderColor {
96
234
  ResumeButton.appearance(for: traitCollection).borderColor = resumeBorderColor
97
235
  }
98
-
99
- // Set default values for border width and corner radius
100
236
  ResumeButton.appearance(for: traitCollection).borderWidth = 1.0
101
237
  ResumeButton.appearance(for: traitCollection).cornerRadius = 4.0
102
238
 
103
- // Floating buttons customization
239
+ // Floating Buttons
104
240
  if let floatingBgColor = customFloatingButtonsBackgroundColor {
105
241
  FloatingButton.appearance(for: traitCollection).backgroundColor = floatingBgColor
106
242
  }
@@ -110,26 +246,300 @@ class CustomDayStyle: StandardDayStyle {
110
246
  if let floatingBorderColor = customFloatingButtonsBorderColor {
111
247
  FloatingButton.appearance(for: traitCollection).borderColor = floatingBorderColor
112
248
  }
113
-
114
- // Set default values for floating buttons
115
249
  FloatingButton.appearance(for: traitCollection).borderWidth = 1.0
116
250
  FloatingButton.appearance(for: traitCollection).cornerRadius = 4.0
117
251
 
118
- // Top Banner - Current Direction Bar (ManeuverView)
252
+ // Maneuver View
119
253
  if let primaryColor = customManeuverViewPrimaryColor {
120
254
  ManeuverView.appearance(for: traitCollection).primaryColor = primaryColor
121
255
  }
122
256
  if let secondaryColor = customManeuverViewSecondaryColor {
123
257
  ManeuverView.appearance(for: traitCollection).secondaryColor = secondaryColor
124
258
  }
259
+ if let primaryHighlightedColor = customManeuverViewPrimaryColorHighlighted {
260
+ ManeuverView.appearance(for: traitCollection).primaryColorHighlighted = primaryHighlightedColor
261
+ }
262
+ if let secondaryHighlightedColor = customManeuverViewSecondaryColorHighlighted {
263
+ ManeuverView.appearance(for: traitCollection).secondaryColorHighlighted = secondaryHighlightedColor
264
+ }
265
+
266
+ // Steps List
267
+ if let bgColor = customStepsBackgroundColor {
268
+ StepsTableView.appearance(for: traitCollection).backgroundColor = bgColor
269
+ }
270
+ if let primaryTextColor = customStepsPrimaryTextColor {
271
+ StepTableViewCell.appearance(for: traitCollection).primaryLabel.textColor = primaryTextColor
272
+ }
273
+ if let secondaryTextColor = customStepsSecondaryTextColor {
274
+ StepTableViewCell.appearance(for: traitCollection).secondaryLabel.textColor = secondaryTextColor
275
+ }
276
+
277
+ // Lane View
278
+ if let bgColor = customLaneViewBackgroundColor {
279
+ LanesView.appearance(for: traitCollection).backgroundColor = bgColor
280
+ }
281
+ if let fgColor = customLaneViewForegroundColor {
282
+ LaneView.appearance(for: traitCollection).foregroundColor = fgColor
283
+ }
284
+ if let separatorColor = customLaneViewSeparatorColor {
285
+ LanesView.appearance(for: traitCollection).separatorColor = separatorColor
286
+ }
287
+
288
+ // Next Banner View
289
+ if let bgColor = customNextBannerBackgroundColor {
290
+ NextBannerView.appearance(for: traitCollection).backgroundColor = bgColor
291
+ }
292
+ if let primaryTextColor = customNextBannerPrimaryTextColor {
293
+ NextBannerView.appearance(for: traitCollection).primaryLabel.textColor = primaryTextColor
294
+ }
295
+ if let secondaryTextColor = customNextBannerSecondaryTextColor {
296
+ NextBannerView.appearance(for: traitCollection).secondaryLabel.textColor = secondaryTextColor
297
+ }
298
+ if let distanceTextColor = customNextBannerDistanceTextColor {
299
+ NextBannerView.appearance(for: traitCollection).distanceLabel.textColor = distanceTextColor
300
+ }
301
+
302
+ // Progress Bar
303
+ if let progressColor = customProgressBarProgressColor {
304
+ ProgressBar.appearance(for: traitCollection).progressColor = progressColor
305
+ }
306
+ if let backgroundColor = customProgressBarBackgroundColor {
307
+ ProgressBar.appearance(for: traitCollection).backgroundColor = backgroundColor
308
+ }
309
+
310
+ // Exit View
311
+ if let foregroundColor = customExitViewForegroundColor {
312
+ ExitView.appearance(for: traitCollection).foregroundColor = foregroundColor
313
+ }
314
+ if let borderColor = customExitViewBorderColor {
315
+ ExitView.appearance(for: traitCollection).borderColor = borderColor
316
+ }
317
+ if let highlightColor = customExitViewHighlightColor {
318
+ ExitView.appearance(for: traitCollection).highlightColor = highlightColor
319
+ }
320
+
321
+ // Route Shield
322
+ if let foregroundColor = customRouteShieldForegroundColor {
323
+ GenericRouteShield.appearance(for: traitCollection).foregroundColor = foregroundColor
324
+ }
325
+ if let borderColor = customRouteShieldBorderColor {
326
+ GenericRouteShield.appearance(for: traitCollection).borderColor = borderColor
327
+ }
328
+ if let highlightColor = customRouteShieldHighlightColor {
329
+ GenericRouteShield.appearance(for: traitCollection).highlightColor = highlightColor
330
+ }
331
+
332
+ // Distance Labels
333
+ if let distanceColor = customDistanceRemainingColor {
334
+ DistanceRemainingLabel.appearance(for: traitCollection).normalTextColor = distanceColor
335
+ }
336
+
337
+ // Instructions Card
338
+ if let bgColor = customInstructionsCardBackgroundColor {
339
+ InstructionsCardContainerView.appearance(
340
+ for: traitCollection,
341
+ whenContainedInInstancesOf: [InstructionsCardCell.self]
342
+ ).customBackgroundColor = bgColor
343
+ }
344
+ if let separatorColor = customInstructionsCardSeparatorColor {
345
+ InstructionsCardContainerView.appearance(
346
+ for: traitCollection,
347
+ whenContainedInInstancesOf: [InstructionsCardCell.self]
348
+ ).separatorColor = separatorColor
349
+ }
350
+ if let highlightedSeparatorColor = customInstructionsCardHighlightedSeparatorColor {
351
+ InstructionsCardContainerView.appearance(
352
+ for: traitCollection,
353
+ whenContainedInInstancesOf: [InstructionsCardCell.self]
354
+ ).highlightedSeparatorColor = highlightedSeparatorColor
355
+ }
356
+
357
+ // Feedback
358
+ if let feedbackBgColor = customFeedbackBackgroundColor {
359
+ FeedbackStyleView.appearance(for: traitCollection).backgroundColor = feedbackBgColor
360
+ FeedbackCollectionView.appearance(for: traitCollection).backgroundColor = feedbackBgColor
361
+ }
362
+ if let feedbackTextColor = customFeedbackTextColor {
363
+ UILabel.appearance(
364
+ for: traitCollection,
365
+ whenContainedInInstancesOf: [FeedbackViewController.self]
366
+ ).textColor = feedbackTextColor
367
+ }
368
+ if let feedbackCellColor = customFeedbackCellColor {
369
+ FeedbackCollectionView.appearance(for: traitCollection).cellColor = feedbackCellColor
370
+ }
371
+
372
+ // Road Shield Colors
373
+ if let blackColor = customRoadShieldBlackColor {
374
+ WayNameLabel.appearance(for: traitCollection).roadShieldBlackColor = blackColor
375
+ InstructionLabel.appearance(for: traitCollection).roadShieldBlackColor = blackColor
376
+ }
377
+ if let blueColor = customRoadShieldBlueColor {
378
+ WayNameLabel.appearance(for: traitCollection).roadShieldBlueColor = blueColor
379
+ InstructionLabel.appearance(for: traitCollection).roadShieldBlueColor = blueColor
380
+ }
381
+ if let greenColor = customRoadShieldGreenColor {
382
+ WayNameLabel.appearance(for: traitCollection).roadShieldGreenColor = greenColor
383
+ InstructionLabel.appearance(for: traitCollection).roadShieldGreenColor = greenColor
384
+ }
385
+ if let redColor = customRoadShieldRedColor {
386
+ WayNameLabel.appearance(for: traitCollection).roadShieldRedColor = redColor
387
+ InstructionLabel.appearance(for: traitCollection).roadShieldRedColor = redColor
388
+ }
389
+ if let whiteColor = customRoadShieldWhiteColor {
390
+ WayNameLabel.appearance(for: traitCollection).roadShieldWhiteColor = whiteColor
391
+ InstructionLabel.appearance(for: traitCollection).roadShieldWhiteColor = whiteColor
392
+ }
393
+ if let yellowColor = customRoadShieldYellowColor {
394
+ WayNameLabel.appearance(for: traitCollection).roadShieldYellowColor = yellowColor
395
+ InstructionLabel.appearance(for: traitCollection).roadShieldYellowColor = yellowColor
396
+ }
397
+ if let defaultColor = customRoadShieldDefaultColor {
398
+ WayNameLabel.appearance(for: traitCollection).roadShieldDefaultColor = defaultColor
399
+ InstructionLabel.appearance(for: traitCollection).roadShieldDefaultColor = defaultColor
400
+ }
401
+
402
+ // Navigation Map
403
+ Task { @MainActor in
404
+ if let alternateColor = customRouteAlternateColor {
405
+ NavigationMapView.appearance(for: traitCollection).routeAlternateColor = alternateColor
406
+ }
407
+ if let selectedColor = customRouteAnnotationSelectedColor {
408
+ NavigationMapView.appearance(for: traitCollection).routeAnnotationSelectedColor = selectedColor
409
+ }
410
+ if let annotationColor = customRouteAnnotationColor {
411
+ NavigationMapView.appearance(for: traitCollection).routeAnnotationColor = annotationColor
412
+ }
413
+ if let annotationTextColor = customRouteAnnotationTextColor {
414
+ NavigationMapView.appearance(for: traitCollection).routeAnnotationTextColor = annotationTextColor
415
+ }
416
+ if let selectedTextColor = customRouteAnnotationSelectedTextColor {
417
+ NavigationMapView.appearance(for: traitCollection).routeAnnotationSelectedTextColor = selectedTextColor
418
+ }
419
+ if let moreTimeTextColor = customRouteAnnotationMoreTimeTextColor {
420
+ NavigationMapView.appearance(for: traitCollection).routeAnnotationMoreTimeTextColor = moreTimeTextColor
421
+ }
422
+ if let lessTimeTextColor = customRouteAnnotationLessTimeTextColor {
423
+ NavigationMapView.appearance(for: traitCollection).routeAnnotationLessTimeTextColor = lessTimeTextColor
424
+ }
425
+ if let waypointColor = customWaypointColor {
426
+ NavigationMapView.appearance(for: traitCollection).waypointColor = waypointColor
427
+ }
428
+ if let waypointStrokeColor = customWaypointStrokeColor {
429
+ NavigationMapView.appearance(for: traitCollection).waypointStrokeColor = waypointStrokeColor
430
+ }
431
+ }
432
+
433
+ // Button Properties
434
+ if let textColor = customButtonTextColor {
435
+ Button.appearance(for: traitCollection).textColor = textColor
436
+ }
437
+
438
+ if let cancelTintColor = customCancelButtonTintColor {
439
+ CancelButton.appearance(for: traitCollection).tintColor = cancelTintColor
440
+ }
441
+
442
+ if let previewTintColor = customPreviewButtonTintColor {
443
+ PreviewButton.appearance(for: traitCollection).tintColor = previewTintColor
444
+ }
445
+
446
+ if let startTintColor = customStartButtonTintColor {
447
+ StartButton.appearance(for: traitCollection).tintColor = startTintColor
448
+ }
449
+
450
+ if let dismissBgColor = customDismissButtonBackgroundColor {
451
+ DismissButton.appearance(for: traitCollection).backgroundColor = dismissBgColor
452
+ }
453
+
454
+ if let dismissTextColor = customDismissButtonTextColor {
455
+ DismissButton.appearance(for: traitCollection).textColor = dismissTextColor
456
+ }
457
+
458
+ if let backBgColor = customBackButtonBackgroundColor {
459
+ BackButton.appearance(for: traitCollection).backgroundColor = backBgColor
460
+ }
461
+
462
+ if let backTintColor = customBackButtonTintColor {
463
+ BackButton.appearance(for: traitCollection).tintColor = backTintColor
464
+ }
125
465
 
126
- // Current Direction Background and Text
127
- if let bgColor = customManeuverViewBackgroundColor {
128
- ManeuverView.appearance(for: traitCollection).backgroundColor = bgColor
466
+ if let backTextColor = customBackButtonTextColor {
467
+ BackButton.appearance(for: traitCollection).textColor = backTextColor
129
468
  }
130
- if let textColor = customManeuverViewTextColor {
131
- StepInstructionsView.appearance(for: traitCollection).primaryLabel.textColor = textColor
132
- StepInstructionsView.appearance(for: traitCollection).secondaryLabel.textColor = textColor
469
+
470
+ if let backBorderColor = customBackButtonBorderColor {
471
+ BackButton.appearance(for: traitCollection).borderColor = backBorderColor
472
+ }
473
+
474
+ // Navigation View
475
+ if let navBgColor = customNavigationViewBackgroundColor {
476
+ NavigationView.appearance(for: traitCollection).backgroundColor = navBgColor
477
+ }
478
+
479
+ // Distance Label Properties
480
+ if let unitTextColor = customDistanceLabelUnitTextColor {
481
+ DistanceLabel.appearance(for: traitCollection).unitTextColor = unitTextColor
482
+ }
483
+
484
+ if let valueTextColor = customDistanceLabelValueTextColor {
485
+ DistanceLabel.appearance(for: traitCollection).valueTextColor = valueTextColor
486
+ }
487
+
488
+ // Rating Control
489
+ if let normalColor = customRatingControlNormalColor {
490
+ RatingControl.appearance(for: traitCollection).normalColor = normalColor
491
+ }
492
+
493
+ if let selectedColor = customRatingControlSelectedColor {
494
+ RatingControl.appearance(for: traitCollection).selectedColor = selectedColor
495
+ }
496
+
497
+ // Steps Properties
498
+ if let bgViewColor = customStepsBackgroundViewColor {
499
+ StepsBackgroundView.appearance(for: traitCollection).backgroundColor = bgViewColor
500
+ }
501
+
502
+ if let headerTintColor = customStepsTableHeaderTintColor {
503
+ StepsTableHeaderView.appearance(for: traitCollection).tintColor = headerTintColor
504
+ }
505
+
506
+ if let headerTextColor = customStepsTableHeaderTextColor {
507
+ StepsTableHeaderView.appearance(for: traitCollection).normalTextColor = headerTextColor
508
+ }
509
+
510
+ if let instructionsBgColor = customStepInstructionsBackgroundColor {
511
+ StepInstructionsView.appearance(for: traitCollection).backgroundColor = instructionsBgColor
512
+ }
513
+
514
+ if let cellBgColor = customStepTableViewCellBackgroundColor {
515
+ StepTableViewCell.appearance(for: traitCollection).backgroundColor = cellBgColor
516
+ }
517
+
518
+ // Next Instruction
519
+ if let normalTextColor = customNextInstructionNormalTextColor {
520
+ NextInstructionLabel.appearance(for: traitCollection).normalTextColor = normalTextColor
521
+ }
522
+
523
+ if let containedTextColor = customNextInstructionContainedTextColor {
524
+ NextInstructionLabel.appearance(
525
+ for: traitCollection,
526
+ whenContainedInInstancesOf: [NextBannerView.self]
527
+ ).normalTextColor = containedTextColor
528
+ }
529
+
530
+ // Secondary Label Properties
531
+ if let normalTextColor = customSecondaryLabelNormalTextColor {
532
+ SecondaryLabel.appearance(for: traitCollection).normalTextColor = normalTextColor
533
+ }
534
+
535
+ // Stylable Label
536
+ if let normalTextColor = customStylableLabelNormalTextColor {
537
+ StylableLabel.appearance(for: traitCollection).normalTextColor = normalTextColor
538
+ }
539
+
540
+ // CarPlay Properties
541
+ if let compassBgColor = customCarPlayCompassBackgroundColor {
542
+ CarPlayCompassView.appearance(for: traitCollection).backgroundColor = compassBgColor
133
543
  }
134
544
  }
135
545
  }