PopBounceButton
PopBounceButton copied to clipboard
PopBounceButton with UIViewRepresentable is not work in SwiftUI
Hi thanks for this library. Is it possible to use this in SwiftUI in a way?
`struct myBounceButton: UIViewRepresentable{
func makeUIView(context: Context) -> PopBounceButton {
let myBtn = PopBounceButton()
myBtn.setTitle("click me", for: .normal)
myBtn.setTitleColor(UIColor.white, for: .normal)
myBtn.layer.backgroundColor = UIColor.red.cgColor
myBtn.layer.cornerRadius = 16
return myBtn
}
func updateUIView(_ uiView: PopBounceButton, context: Context) {
}
}`
I would expect to work this piece code but animation is broken