Post not yet marked as solved
Post marked as unsolved with 0 replies, 112 views
SwiftUI's TabView seems to have problems when being used in a sidebar on iPad.
This example works completely fine on iPhone, only iPad makes problems:
NavigationView{
TabView{
Text("Test 1").tabItem{
Image(systemName: "folder")
}
Text("Test 2").tabItem{
Image(systemName: "tag")
}
Text("Test 3").tabItem{
Image(systemName: "star")
}
}
}
The tabbar width is not calculated correctly and as a result not all buttons are shown. In the screenshot there should be three buttons visible, but only 2 are shown, "folder" is missing:
Has someone a solution or workaround for this?
I have tested this with iOS 17 and 17.2.