I have this very simple code below and I am using the currentMenu to set the current tab's proper icon. But neither the button action nor the onTapGesture are executing as I see no print messages at all. It seems taps inside of tabItem are not registering.
NavigationView { }
.tabItem {
Button {
print("chat tapped")
env.currentMenu = DeChatMenus.PrivateDM
} label: {
Image(env.currentMenu == DeChatMenus.PrivateDM ? "Chat.Sel" : "Chat")
}
}
.tag(DeChatMenus.PrivateDM)