Commit efe9639
[maps-ios] Document view annotation shadow padding workaround (#9767)
## Summary
- Add documentation to `ViewAnnotation` (UIKit) and `MapViewAnnotation`
(SwiftUI) explaining that shadows and other visual effects extending
beyond view bounds may cause premature annotation hiding
## Context
View annotations calculate visibility using the view's frame, which
doesn't account for layer effects like shadows. When a view with a
shadow moves off-screen, the annotation hides while the shadow is still
visible, causing a jarring visual "pop".
The SDK team decided not to address this on the SDK side, so this
documentation helps customers implement the workaround themselves.
cc @mapbox/maps-ios
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
GitOrigin-RevId: 07bcd5bb3784c7c8ffaa77c55d79a9631886f05b1 parent 961bb41 commit efe9639
2 files changed
Lines changed: 12 additions & 0 deletions
File tree
- Sources/MapboxMaps
- Annotations
- SwiftUI/Annotations
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
34 | 41 | | |
35 | 42 | | |
36 | 43 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
| |||
0 commit comments