FluidBottomNavigation-ios
FluidBottomNavigation-ios copied to clipboard
Add badge to items
Please accept we need this added feature :)
you can use this until they merge pod 'FluidTabBarController', :git => 'https://github.com/abdoh476/FluidBottomNavigation-ios'
Thank you a lot...
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
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'
Did you put
pod 'FluidTabBarController', :git => 'https://github.com/abdoh476/FluidBottomNavigation-ios'
in your pod file then made pod install ?
it is working fine now Thank You again :)