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?
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