I give button corner redius using below code but it is not wokring
button.layer.cornerRadius = 3
button.layer.borderWidth = 1
This code is not working.Please help me
I think you need to set button property clipsToBounds true
button.clipsToBounds = true
Add the following line of code before the mentioned two statements.
button.layer.masksToBounds = true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With