Commit 514d320
[maps-ios] fix display link not running for CarPlay Dashboard/Instrument Cluster scenes (#11181)
Cache the connected scene of map view (scene contains map view's window
that is activated) to correctly determine display link pause/resume
state if the current window does not have reference to `windowScene`
(i.e CarPlay dashboard scene)
After mapbox/mapbox-sdk#5770 which introduced
Display link tweak, it was changed from `shouldPauseDisplayLink` which
would never pause for window of CarPlay dashboard scene, to
`shouldRunDisplayLink` which would never run for same scene
MAPSIOS-2130
The issue can be reproduced with our CarPlay example
- Run Examples app on CarPlay in split screen mode (dashboard)
- On the left panel, tap on `Start` and `Stop` button; observe that on
main branch the map would not perform any camera animation
**Before**
https://github.com/user-attachments/assets/ce6f8f67-ecfe-4c30-b8a7-d3c1c70d18f4
**After**
https://github.com/user-attachments/assets/7943b4ca-d05c-402e-ba29-662fd3ca4f9e
cc @mapbox/maps-ios
GitOrigin-RevId: ab46d0b02e8bdb9ab15f53ac3c37c76dffa4ac131 parent d239ef0 commit 514d320
File tree
4 files changed
+19
-53
lines changed- Sources/MapboxMaps/Foundation
- Extensions
- Tests/MapboxMapsTests/Foundation
- Extensions
4 files changed
+19
-53
lines changedLines changed: 0 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 8 | | |
23 | 9 | | |
24 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
125 | 131 | | |
126 | 132 | | |
127 | 133 | | |
| |||
543 | 549 | | |
544 | 550 | | |
545 | 551 | | |
546 | | - | |
| 552 | + | |
547 | 553 | | |
548 | 554 | | |
549 | 555 | | |
550 | | - | |
| 556 | + | |
551 | 557 | | |
552 | 558 | | |
553 | 559 | | |
554 | | - | |
| 560 | + | |
555 | 561 | | |
556 | 562 | | |
557 | 563 | | |
558 | 564 | | |
559 | 565 | | |
| 566 | + | |
560 | 567 | | |
561 | 568 | | |
562 | 569 | | |
563 | 570 | | |
564 | 571 | | |
565 | 572 | | |
| 573 | + | |
566 | 574 | | |
567 | 575 | | |
568 | 576 | | |
| |||
694 | 702 | | |
695 | 703 | | |
696 | 704 | | |
697 | | - | |
| 705 | + | |
698 | 706 | | |
699 | 707 | | |
700 | 708 | | |
| |||
786 | 794 | | |
787 | 795 | | |
788 | 796 | | |
789 | | - | |
| 797 | + | |
790 | 798 | | |
791 | 799 | | |
792 | 800 | | |
| |||
799 | 807 | | |
800 | 808 | | |
801 | 809 | | |
802 | | - | |
803 | | - | |
| 810 | + | |
| 811 | + | |
804 | 812 | | |
805 | 813 | | |
806 | 814 | | |
| |||
Lines changed: 0 additions & 28 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
410 | | - | |
| 410 | + | |
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
| 418 | + | |
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
| 424 | + | |
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
| |||
0 commit comments