xabre / xamarin-forms-tab-badge

Xamarin Forms bindable Tab badges for iOS, Android, UWP, MacOS and WPF
MIT License
307 stars 75 forks source link

[iOS] BadgeColor #101

Closed mimunoz closed 3 years ago

mimunoz commented 3 years ago

Hi all, thanks for this plugin.

I'm currently work with:

I try to set another color to badge and this work well in Android, but in iOS isn't working. Color changes works when I made a change in xaml and save changes, then hotreload fires the changes and the color change as well, but by default(when app start) doesn't work.

Update: I'm using NavigationPage as a tab child.

I put the the badge color in xaml and the LinkerPleasureInclude like this

public class LinkerPleaseInclude { public void Include(UITabBarItem item) { item.BadgeColor = Color.FromHex("#007BFG").ToUIColor(); item.BadgeValue = "badge"; } }

mimunoz commented 3 years ago

I'll close this issue, because the problem was the SVG icons what I used to the tabs instead .png.

Regards.