Font, title, and title color are not in line with UIButton behavior
AriX opened this issue · 2 comments
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:
It would be great if AYVibrantButton pulled these properties from the UIButton's standard implementation rather than providing its own, alternate properties.
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.