Introduction
withAnimation helps you make changes in your app look smooth and natural by adding movement effects.
When you want a button to fade or move smoothly after tapping it.
When you change a view's size and want it to grow or shrink gently.
When showing or hiding parts of your screen with a nice transition.
When updating a list and you want new items to appear with animation.