Closed Phenek closed 5 years ago
I think is about the CheckValidTabIndex function in the iOS Renderer
The function is searching for the IndexOf(tab) and need to be the IndexOf(navigation) regarding my implementation. #58
For a workaround we could do :
public bool CheckValidTabIndex(Page page, out int tabIndex)
{
tabIndex = Tabbed.Children.IndexOf(page);
if(tabIndex == -1 && page.Parent != null)
{
tabIndex = Tabbed.Children.IndexOf(page.Parent);
}
return tabIndex < TabBar.Items.Length && tabIndex >= 0;;
}
Regards,
PR #63 was merged and released with v2.1.1
My implementation is like so:
When changing the BadgeTextProperty I got an IndexOutOfRange on iOS Only. Message: Index was outside the bounds of the array.
The StackTrace take me to the Plugin.Badge.iOS.BadgedTabbedPageRenderer.OnTabbedPagePropertyChanged