SwiftUI: Animate a Button View scale modifier up then back to its initial state

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. 


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s