-
Notifications
You must be signed in to change notification settings - Fork 212
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
BadgeAlignment is always JSBadgeViewAlignmentTopRight #18
Comments
This is intended behavior. The value set in the appearance object is the default. Are you setting it yourself, either via appearance, or manually on a |
I'm setting the alignment within the init method: Which is where this bug occurs. It doesn't happen when you set the alignment after the init: Sorry that I wasn't more clear on that. |
…e setter so that UIAppearance doesn't override the value with the default one. Fixes issue #18.
Fixed :) |
No problem, glad I could help. :) |
The BadgeAlignment property is always JSBadgeViewAlignmentTopRight.
This is because + (void)applyCommonStyle sets
badgeViewAppearanceProxy.badgeAlignment = JSBadgeViewAlignmentTopRight;
so the calls to
JSBadgeView *badgeViewAppearanceProxy = JSBadgeView.appearance;
in + (void)applyIOS7Style and + (void)applyLegacyStyle always gets set to JSBadgeViewAlignmentTopRight.
This can be fixed by commenting out/removing:
badgeViewAppearanceProxy.badgeAlignment = JSBadgeViewAlignmentTopRight;
in + (void)applyCommonStyle
The text was updated successfully, but these errors were encountered: