zoonooz / ZFRippleButton

Custom UIButton effect inspired by Google Material Design
MIT License
1.41k stars 110 forks source link

Can't set rippleColor and rippleBackgroundColor Programmatically #32

Closed tonifirnandes closed 6 years ago

tonifirnandes commented 6 years ago

Dear team,

When we upgrade the library to support Swift3, when we do such as : rippleButton.rippleColor = UIColor.green, produce error : Failed to set (rippleColor) user defined inspected property on (UIButton): [<UIButton 0x113d20f00> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key rippleColor.

While for the Swift 2 version, we can set it programmatically.

Best Regards,

tonifirnandes commented 6 years ago

Sorry, we forgot to set right module to point the FRippleButton library in the interface. Thanks for the great work team.