a1anyip/AYVibrantButton

Font, title, and title color are not in line with UIButton behavior

AriX opened this issue · 2 comments

AriX commented

AYVibrantButtons are gorgeous, but the non-standard button attributes are a huge drawback. Rather than an AYVibrantButton being a drop-in replacement for a UIButton, users must set the font, title, and title color properties in alternate ways. Worse, because of UIButton's default Auto Layout behavior, I end up having to set these attributes in BOTH the AYVibrantButton ways and the UIButton ways in order to get proper sizing behavior. I end up with code like this:
screen shot 2014-08-18 at 3 47 38 pm

It would be great if AYVibrantButton pulled these properties from the UIButton's standard implementation rather than providing its own, alternate properties.

mxcl commented

I also found it weird that it inherits UIButton, but using any UIButton methods pretty much doesn't work.

Edit: It’s not a deal breaker, it just added time to my initially learning the class. And I can anticipate other people on my team being confused, so it just adds up.

It should probably be a UIControl unless you plan on supporting UIButton methods.