Repository navigation
Commit 59ec1a1
authored
fix(snapshot): stop iOS 27 floating-bar containers from covering content (callstack#3912)
* fix(snapshot): stop iOS 27 floating-bar containers from covering content
On iOS 27 a `_UIFloatingBarContainerView` (type `Toolbar`) marks content
covered in two shapes the sibling-sized and full-viewport exemptions miss.
A tabbar/toolbar/navigationbar container whose rect matches its parent is
exempt when a sibling branch encloses it. The runner prunes the same-size
sibling the raw tree lists, so the container ends up beside the larger
content branch instead.
The full-viewport check accepts a container that matches the viewport's
x, width and bottom edge and starts up to 4pt below its top. An app that
draws a 2pt strip above its window content pushes the container to y=2.
Fixes callstack#3883
* fix(snapshot): drop the parent-sized chrome rule, keep the top-inset footprint
The regular iOS projection collapses duplicate identities and presents
the floating-bar containers as application-level siblings, so a container
never matches its presented parent. A live iPhone 18 Pro Max iOS 27.0
capture shows both containers under the application: the y=64 pair exempt
each other and the y=2 container needs only the top-inset footprint. The
parent-sized rule, its three tests, and the pruning claim in its comment
go; the raw tree the issue carries is the raw projection, which the daemon
never annotates.1 parent 87f68d2 commit 59ec1a1
2 files changed
Lines changed: 62 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
671 | 671 | | |
672 | 672 | | |
673 | 673 | | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
674 | 718 | | |
675 | 719 | | |
676 | 720 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
29 | 36 | | |
30 | 37 | | |
31 | 38 | | |
| |||
421 | 428 | | |
422 | 429 | | |
423 | 430 | | |
424 | | - | |
| 431 | + | |
425 | 432 | | |
426 | 433 | | |
427 | 434 | | |
| |||
531 | 538 | | |
532 | 539 | | |
533 | 540 | | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
0 commit comments