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 · 1 comment
Open

Feature Request: Allow badges #19

dkk opened this issue Jul 17, 2023 · 1 comment
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
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

2 participants