PopBounceButton icon indicating copy to clipboard operation
PopBounceButton copied to clipboard

PopBounceButton with UIViewRepresentable is not work in SwiftUI

Open akardas16 opened this issue 3 years ago • 0 comments

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

akardas16 avatar Apr 17 '22 10:04 akardas16