This article explains how to create a smooth button scale animation on tap using SwiftUI.Two methods are discussed, one using a custom view model and the other using a button style.The custom view model approach allows the parent view to handle the changes in button state and trigger the animation.The button style approach provides a simpler implementation but may result in less smooth animation and occasional lack of animation trigger.