A simple button with in built bounce animation

Retry-button

A simple button with in built bounce animation

Setup and Usage:

  • Just drag and drop RetryButton.swift in your project and use it anywhere you like, for example:

import SwiftUI

struct ContentView: View {
    var body: some View {
        RetryButton()
            .simultaneousGesture(TapGesture()
                .onEnded {
                    print("tapped!!")
                })
    }
}

GitHub

View Github