I would like to make an animation like Shazam's Button but I can't manage to do it...
Anyone have an idea how to make this animation in SwiftUI?
Here is the code :
import SwiftUI
import Foundation
struct SpeechButton: View {
@State var isPressed:Bool = false
var body: some View {
Button(action:{
}){
ZStack {
//--> // if self.isPressed { RoundAnimation() }
Image(systemName: "waveform")// Button Image
.resizable()
.frame(width: 40, height: 40)
.foregroundColor(.white)
}
)
}
}
Thanks in advance for your help people :)
After your code update even has more issue with it, it was not runnable, how ever you just gave me an Empty Button to work on it!
Here I got some thing for you:
Update Code: Version 2.0.0
Update Code: Version 3.0.0 Much more and better Animation