How to update this animated view for iOS 15

You need to add a value which activates animation (aka, dependency). As you animate transition dependent on side, then it should be

.transition(.move(edge: side == .left ? .leading : .trailing))
.animation(.spring(), value: side)     // << here !!