Animated shine effect for your views with SwiftUI
Shine-View-SwiftUI
Animated shine effect for your views
@State var animateTrigger = false
var body: some View {
Button(action: { animateTrigger.toggle() }) {
Text("Shine View")
.font(.system(size: 40, weight: .bold))
.padding(30)
.foregroundColor(.white)
.background(Color.blue)
.cornerRadius(18)
.shineEffect(animationTrigger: $animateTrigger)
}
}