Posts

Showing posts from November, 2019

A Simple SwiftUI animation

Image
struct ContentView: View {         @State private var animationAmount: CGFloat = 1             var body: some View {         Button("Tap Me") {         }         .padding(40)         .background(Color.red)         .foregroundColor(Color.white)         .clipShape(Circle())         .overlay(             Circle()                 .stroke(Color.red)                 .scaleEffect(animationAmount)              ...