v-braun / VBRRollingPit

Simple, beautiful and interactive UITabBar
MIT License
329 stars 51 forks source link

TabBarItem's badge icon position for non selected tab. #19

Closed AnandSharma0821 closed 4 years ago

AnandSharma0821 commented 4 years ago

@v-braun & @Kladdkaka How to manage the badge icon position for non selected tab. Here I am sending you the screenshot for your reference. Can you please provide us a way to manage the badge icon. Simulator Screen Shot - iPhone 11 Pro Max - 2020-09-24 at 12 41 53

v-braun commented 4 years ago

You have to position it yourself, check this out: https://stackoverflow.com/a/38973225

AnandSharma0821 commented 4 years ago

@v-braun Thanks for your reply. It helped me to change the position of the badge item. There is one weird issue which I am facing, in a few devices tab bar is showing a separator line as shown in the below attachment.

Separator

Can you please help me out with this?

v-braun commented 4 years ago

Looks like there is a system style that provides this separator (maybe a special ios version or something else). It only happens on specific devices right? have they another ios version??

Maybe this will help (the last sentence in the post): https://blog.k.io/atech/set-the-top-border-colour-of-a-uinavbar

In order to hide the system border, I have found that it’s usually enough to simply set the clipsToBounds property on the tab bar to true.

self.tabBar.clipsToBounds = YES;
AnandSharma0821 commented 4 years ago

@v-braun Thanks for the support. That worked for me.