Hi, we are making an app with compose multiplatfor...
# compose-ios
a
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
} }
a
Could you please make a small reproducer project, upload it on the GitHub and file an issue on our YouTrack?
a
Okay I will do that
👍 1
a
Feel free to mention me there.
a
Is it this YouTrack https://youtrack.jetbrains.com/?
a
a