Skip to content

Add badge to items#6

Open
abdoh476 wants to merge 4 commits into
10clouds:masterfrom
abdoh476:master
Open

Add badge to items#6
abdoh476 wants to merge 4 commits into
10clouds:masterfrom
abdoh476:master

Conversation

@abdoh476

@abdoh476 abdoh476 commented Dec 8, 2020

Copy link
Copy Markdown

No description provided.

@ssdjordan

Copy link
Copy Markdown

Please accept we need this added feature :)

@abdoh476

Copy link
Copy Markdown
Author

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

@ssdjordan

Copy link
Copy Markdown

Thank you a lot...

@abdoh476

Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
Author

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

@ssdjordan

Copy link
Copy Markdown

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