带有内置弹跳动画的简单按钮
重试按钮
带有内置弹跳动画的简单按钮
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!!")
})
}
}