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

Add badge to items #6

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Add badge to items #6

wants to merge 4 commits into from

Conversation

abdoh476
Copy link

@abdoh476 abdoh476 commented Dec 8, 2020

No description provided.

@ssdjordan
Copy link

Please accept we need this added feature :)

@abdoh476
Copy link
Author

you can use this until they merge
pod 'FluidTabBarController', :git => 'https://github.com/abdoh476/FluidBottomNavigation-ios'

@ssdjordan
Copy link

Thank you a lot...

@abdoh476
Copy link
Author

This is how to make badge and put number to it
(self.tabBarController!.tabBar.items![index] as! FluidTabBarItem).isBadged = true (self.tabBarController!.tabBar.items![index] as! FluidTabBarItem).badgeNumber = "\(value.data.messagesNumber)"

you may want to handle making the badge false when clicking on the page the badge have

@ssdjordan
Copy link

Dear,
I have a compiler error when the above two lines were added.
Value of type 'FluidTabBarItem' has no member 'badgeNumber'
Value of type 'FluidTabBarItem' has no member 'isBadged'

@abdoh476
Copy link
Author

Did you put
pod 'FluidTabBarController', :git => 'https://github.com/abdoh476/FluidBottomNavigation-ios'
in your pod file then made pod install ?

@ssdjordan
Copy link

it is working fine now Thank You again :)

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

Successfully merging this pull request may close these issues.

2 participants