In the code snippet below the Button when tapped will animate its scaleEffect up then return to its initial value. DispatchQueue.main.asyncAfter is used to add a small delay after the first animation block.

In the code snippet below the Button when tapped will animate its scaleEffect up then return to its initial value. DispatchQueue.main.asyncAfter is used to add a small delay after the first animation block.