PPBadgeView
PPBadgeView copied to clipboard
Grow badge on left if needed
Hi! I'm trying to align the badge text to the right, but I'm unable to… If you look at the screenshot, you'll see that the badge, when higher than 10, is touches the end of the screen. How can I tell the badge to grow on the left instead of right, or at least stay centered on the original badge center position?
I'm so sorry, I'm very busy this time.
Now I add a API, and you can call it:
Objc: - (void) pp_setBadgeFlexMode: (PPBadgeViewFlexMode) flexMode;
Swift: func setBadge (flexMode: PPBadgeViewFlexMode =.tail) { }
.
To change the pattern of Badge flex, example:
@jdanthinne