possible fix for the top banner having it's pieces slide and appear independently

This commit is contained in:
Mauro Romito
2026-05-15 18:37:57 +02:00
committed by Stefan Ceriu
parent 4ff58f8756
commit 9ed47c61b7
@@ -66,6 +66,13 @@ extension View {
ForEach(Array(item.verticalBanners.enumerated()), id: \.offset) { _, vBanner in
if vBanner.isVisible {
vBanner.banner
// Group the banner's geometry so the slide
// animation transforms it as one unit instead
// of animating each child SwiftUI primitive
// independently. Unlike `drawingGroup`, this
// doesn't rasterise — interactive children
// (Buttons) continue to render normally.
.geometryGroup()
.transition(.move(edge: .top))
}
}