UIBarButtonItem-Badge icon indicating copy to clipboard operation
UIBarButtonItem-Badge copied to clipboard

Status bar overlaps Badge

Open SureshAlangat opened this issue 6 years ago • 1 comments

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 !

SureshAlangat avatar Jan 08 '19 09:01 SureshAlangat

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.

hbhargava7 avatar Jul 02 '20 00:07 hbhargava7