mirror of
https://github.com/cranci1/Sora.git
synced 2026-01-11 20:10:24 +00:00
fixed build issue maybe
This commit is contained in:
parent
78df4df73b
commit
22ba348959
1 changed files with 5 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue