Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grow badge on left if needed #8

Open
jdanthinne opened this issue Jan 24, 2018 · 1 comment
Open

Grow badge on left if needed #8

jdanthinne opened this issue Jan 24, 2018 · 1 comment

Comments

@jdanthinne
Copy link

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

@jkpang
Copy link
Owner

jkpang commented Apr 10, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants