SwiftUI's `animation(_:value:)` modifier can unintentionally animate child content in generic container views. The `animation(_:body:)` API introduced in iOS 17 solves this by scoping animations to specific view attributes via a ViewBuilder closure. A practical example shows how to isolate an opacity animation in a reusable `PremiumContentCard` component, preventing unintended text transition animations from leaking through.
2 Impressions