From 9ed47c61b7f52a298daf145622bc6405eb946661 Mon Sep 17 00:00:00 2001 From: Mauro Romito Date: Fri, 15 May 2026 18:37:57 +0200 Subject: [PATCH] possible fix for the top banner having it's pieces slide and appear independently --- .../Sources/Other/SwiftUI/Views/TopBannerModifier.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ElementX/Sources/Other/SwiftUI/Views/TopBannerModifier.swift b/ElementX/Sources/Other/SwiftUI/Views/TopBannerModifier.swift index 330658b81..ac795fd44 100644 --- a/ElementX/Sources/Other/SwiftUI/Views/TopBannerModifier.swift +++ b/ElementX/Sources/Other/SwiftUI/Views/TopBannerModifier.swift @@ -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)) } }