fixed build issue maybe
Some checks are pending
Build and Release / Build IPA (push) Waiting to run
Build and Release / Build Mac Catalyst (push) Waiting to run

This commit is contained in:
cranci1 2025-06-23 21:14:58 +02:00
parent 78df4df73b
commit 22ba348959

View file

@ -37,14 +37,15 @@ struct ContentView: View {
default: return AnyView(LibraryView())
}
}
var body: some View {
if #available(iOS 26, *), useNativeTabBar == true {
TabView {
ForEach(Array(tabs.enumerated()), id: \.offset) { index, item in
Tab(item.title, systemImage: item.icon, role: index == 3 ? .search : nil) {
tabView(for: index)
}
tabView(for: index)
.tabItem {
Label(item.title, systemImage: item.icon)
}
}
}
.searchable(text: $searchQuery)