TL;DR Conditional modifiers on views break the ability of SwiftUI to identify the view when it changes state during a redraw. This results in unexpected behavior including strange animation transitions. Use ternaries instead.
TL;DR Conditional modifiers on views break the ability of SwiftUI to identify the view when it changes state during a redraw. This results in unexpected behavior including strange animation transitions. Use ternaries instead.