Hi, we are making an app with compose multiplatform but we want a bottomnavigation bar from material on Android and Desktop and a TabView for iOS. The screens inside the tab and bottomNavigation are shared. At first sight everything was fine but when I was navigating in iOS in the tabview, at a certain point I couldn't click any item anymore in my screen itself. Below you can see what I used i iOS. Any ideas?
*import* SwiftUI
*struct* TabBar: View{
*var* homeView: UIView
*var* settingsView: UIView
*var* body: *some* View{
TabView{
NavigationStack{
_ComposeView(view: homeView).navigationTitle(Text("Home"))
}
.tabItem{
Image(systemName: "plus")
Text("Home")
}
NavigationStack{
_ComposeView(view: settingsView).navigationTitle(Text("Settings"))
}
.tabItem{
Image(systemName: "plus")
Text("Settings")
}
}
}
}
private
*struct* _ComposeView: UIViewRepresentable {
*var* view: UIView
*func* updateUIView(_ uiView: UIView, context: Context) {
print("uiView update=")
}
*func* makeUIView(context: Context) -> UIView {
*return* view
}
}