Broken Animation SwiftUI
问题 I initially had this question here. The solution proposed by @arsenius was working for this toy example. However, my application is more complex and it took me forever to find out where the animation breaks. In the example I used two animated HStack . But if I replace these HStack with two different (!) custom views, the animation is broken again. Here is the code: class State:ObservableObject{ @Published var showSolution = false } struct ContentView: View { @EnvironmentObject var state:State