Button("forward") {
withAnimation(.easeInOut.delay(1)) {
isForward.toggle()
}
}
I tried to make my animation slower and smoother however the result i got is freezed animation.
My second try was lowering down the delay value to 0.7 but it did not work too.
>Solution :
Change from .delay to .speed instead. Lower value = slower speed.
withAnimation(.easeInOut.speed(0.5)) {
isForward.toggle()
}