On my storyboard, I have one main UiTabBarController, which is then having 5 child storyboard ids. Each of the storyboard id is having its child view controllers and it expands.
My question is, when I tried to set badge value at my main UiTabBarController using the code similar like this tabBarController?.tabBar.items![0].badgeValue = "1"
, it won't work.
However, when I tried connecting my main UiTabBarController to its child view controllers directly (not using storyboard ids), the badge is working. Any idea why this happens? As I don't want to merge all viewcontrollers under one main.storyboard because it could get messy..