shoheiyokoyama / SYBlinkAnimationKit

SYBlinkAnimationKit is a blink effect animation framework for iOS, written in Swift.
MIT License
125 stars 15 forks source link

Button cannot be tapped #5

Closed zois closed 7 years ago

zois commented 7 years ago

I have created a button in IB and setting some properties in code. I have set the class to be SYButton. The weird thing is that the button is not tapped in its whole surface, but only on some points near its bottom. Do I need to set some specific constraints?

My code quickSendButton.setTitle("Quick File Transfer", for: .normal) quickSendButton.setTitleColor(.white, for: .normal) quickSendButton.backgroundColor = .clear quickSendButton.animationBorderColor = .white quickSendButton.addTarget(self, action: #selector(self.selectAsset), for: .touchUpInside) quickSendButton.animationType = .borderWithShadow quickSendButton.animationDuration = 1.0 quickSendButton.startAnimating()

Thanks