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

Status bar overlaps Badge #38

Open
SureshAlangat opened this issue Jan 8, 2019 · 1 comment
Open

Status bar overlaps Badge #38

SureshAlangat opened this issue Jan 8, 2019 · 1 comment

Comments

@SureshAlangat
Copy link

SureshAlangat commented Jan 8, 2019

When the Button with badge is displayed on navigation bar for the initial loading time, it gets displayed correctly. But when navigate back to the screen from its child screens, it gets overlapped by the status bar !

screenshot 2019-01-08 at 14 59 48

I checked the frame of the BarButtonItem on both scenarios, but found it is the same !

@hbhargava7
Copy link

A workaround for this is to make the following change in UIBarButtonItem+Badge.m:

In badgeInit change self.badgeOriginY = -4 to self.badgeOriginY = 0.

This should prevent the badge from being high enough to get cut off. I couldn't easily figure out how to fix the actual cutoff issue.

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