Debugging Notes on Two SwiftUI Animation Bugs

Easy-to-use animation has always been one of SwiftUI's defining features. But the nature of a declarative framework is a double-edged sword: once an animation misbehaves, tracking down the cause is often trickier than in an imperative framework. This post records two SwiftUI animation bugs I ran into over the past two weeks, along with how I tracked each of them down.