mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-06 04:18:31 +00:00
possible fix for the top banner having it's pieces slide and appear independently
This commit is contained in:
committed by
Stefan Ceriu
parent
4ff58f8756
commit
9ed47c61b7
@@ -66,6 +66,13 @@ extension View {
|
|||||||
ForEach(Array(item.verticalBanners.enumerated()), id: \.offset) { _, vBanner in
|
ForEach(Array(item.verticalBanners.enumerated()), id: \.offset) { _, vBanner in
|
||||||
if vBanner.isVisible {
|
if vBanner.isVisible {
|
||||||
vBanner.banner
|
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))
|
.transition(.move(edge: .top))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user