zoonooz / ZFRippleButton

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

Fix #4: Update bounds on change layout #5

Closed vanyas closed 10 years ago

vanyas commented 10 years ago

Hello first, I really like your button. I was having the same issue as #4 so I've overriden layoutSubviews to update the rippleView and the backgroundView frames. I've also added a corner radius property so as to have rounded buttons. What do you think?

PS I updated the storyboard layout to reflect this change when you rotate the view and made the class @IBDesignable to see the changes immediately. PPS sorry for my bad english

ios simulator screen shot 18 09 2014 10 29 01

ios simulator screen shot 18 09 2014 10 29 06

zoonooz commented 10 years ago

Hi @vanyas Thanks a lot. It looks great!