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

Feature Request: Allow badges #19

Open
dkk opened this issue Jul 17, 2023 · 3 comments
Open

Feature Request: Allow badges #19

dkk opened this issue Jul 17, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@dkk
Copy link

dkk commented Jul 17, 2023

It would be nice to have the possibility to show a badge on a tabBar icon if needed/wanted.

The idea would be to extend TabItemStyle with a badgeNumber: Int? parameter, which would allow handling the drawing of badges. Additionally, the Tabbable protocol must also be extended with a function func badgeNumber(for item: Tabbable) -> Int?, can have a default implementation { nil }

@onl1ner
Copy link
Owner

onl1ner commented Jul 18, 2023

Hello, @dkk!

That is actually great idea! Will try to implement it soon

@onl1ner onl1ner added the enhancement New feature or request label Jul 18, 2023
@dkk dkk mentioned this issue Jul 21, 2023
@doodob
Copy link

doodob commented Feb 8, 2025

Hello @onl1ner !

Is this feature still in development? I’m using your TabBar in my upcoming app, and adding the badge would be amazing 😇

@dkk
Copy link
Author

dkk commented Feb 8, 2025

it is actually already completed (it has been for 2 years), it just needs to be merged. Until then, you could use my branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants