SwiftUI Card Flip animation with two views, one of which is embedded within a Stack
问题 I'm trying to create a 'card flip' animation between two Views: View 'A' is a CardView within a LazyVGrid View 'B' is a custom modal overlay view The LazyVGrid and View 'B' are together in a ZStack Specifically, the ContentView is organized like so: var body: some View { ZStack { NavigationView { ScrollView { LazyVGrid(columns: columns, spacing: 10) { ForEach(model.events, id: \.self) { event in SmallCardView(event: event) .opacity(!showModal || event != modifiableEvent ? 1.0 : 0.0) } } } }