It's difficult to provide a precise explanation, but in SwiftUI, it's best to follow these two principles:
Avoid changing a view's open/close state simultaneously with other states. Adding a slight delay can help avoid many issues.
Avoid animating states that don't need to be animated.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: