@@ -243,14 +243,14 @@ class InstructionPresenter {
243243 let genericRouteShield = GenericRouteShield ( pointSize: dataSource. font. pointSize,
244244 text: text)
245245
246- var appearance = GenericRouteShield . appearance ( )
246+ var appearance = GenericRouteShield . appearance ( for : UITraitCollection ( userInterfaceIdiom : . phone ) )
247247 if traitCollection. userInterfaceIdiom == . carPlay {
248248 let carPlayTraitCollection = UITraitCollection ( userInterfaceIdiom: . carPlay)
249249
250250 if #available( iOS 12 . 0 , * ) {
251251 let traitCollection = UITraitCollection ( traitsFrom: [
252252 carPlayTraitCollection,
253- UITraitCollection ( userInterfaceStyle: self . traitCollection. userInterfaceStyle)
253+ UITraitCollection ( userInterfaceStyle: traitCollection. userInterfaceStyle)
254254 ] )
255255
256256 appearance = GenericRouteShield . appearance ( for: traitCollection)
@@ -292,14 +292,14 @@ class InstructionPresenter {
292292 side: side,
293293 text: text)
294294
295- var appearance = ExitView . appearance ( )
295+ var appearance = ExitView . appearance ( for : UITraitCollection ( userInterfaceIdiom : . phone ) )
296296 if traitCollection. userInterfaceIdiom == . carPlay {
297297 let carPlayTraitCollection = UITraitCollection ( userInterfaceIdiom: . carPlay)
298298
299299 if #available( iOS 12 . 0 , * ) {
300300 let traitCollection = UITraitCollection ( traitsFrom: [
301301 carPlayTraitCollection,
302- UITraitCollection ( userInterfaceStyle: self . traitCollection. userInterfaceStyle)
302+ UITraitCollection ( userInterfaceStyle: traitCollection. userInterfaceStyle)
303303 ] )
304304
305305 appearance = ExitView . appearance ( for: traitCollection)
0 commit comments