I found this on SwiftLee's website that seemed to be the most compact solution. Just use in place of .animation(nil) :
.transaction { transaction in
transaction.animation = nil
}
Happy coding!
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: