PPBadgeView icon indicating copy to clipboard operation
PPBadgeView copied to clipboard

Grow badge on left if needed

Open jdanthinne opened this issue 6 years ago • 1 comments

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?

simulator screen shot - iphone x - 2018-01-24 at 15 22 43

jdanthinne avatar Jan 24 '18 15:01 jdanthinne

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:

image @jdanthinne

jkpang avatar Apr 10 '18 10:04 jkpang