fixed some syntax and stuffs

This commit is contained in:
Francesco 2025-06-01 21:55:25 +02:00
parent cbddeb6eb0
commit ac0507e615
2 changed files with 1 additions and 11 deletions

View file

@ -109,14 +109,6 @@ struct MediaInfoView: View {
.navigationBarTitleDisplayMode(.inline) .navigationBarTitleDisplayMode(.inline)
.navigationBarTitle("") .navigationBarTitle("")
.ignoresSafeArea(.container, edges: .top) .ignoresSafeArea(.container, edges: .top)
.onAppear {
if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
let window = windowScene.windows.first,
let navigationController = window.rootViewController?.children.first as? UINavigationController {
navigationController.interactivePopGestureRecognizer?.isEnabled = true
navigationController.interactivePopGestureRecognizer?.delegate = nil
}
}
VStack { VStack {
HStack { HStack {
@ -285,8 +277,6 @@ struct MediaInfoView: View {
.onAppear { .onAppear {
UIScrollView.appearance().bounces = true UIScrollView.appearance().bounces = true
} }
.navigationBarTitleDisplayMode(.inline)
.navigationBarTitle("")
.ignoresSafeArea(.container, edges: .top) .ignoresSafeArea(.container, edges: .top)
} }

View file

@ -124,6 +124,7 @@ struct SearchView: View {
} }
.navigationBarHidden(true) .navigationBarHidden(true)
} }
.navigationViewStyle(.stack)
.onAppear { .onAppear {
loadSearchHistory() loadSearchHistory()
if !searchQuery.isEmpty { if !searchQuery.isEmpty {
@ -162,7 +163,6 @@ struct SearchView: View {
} }
} }
} }
.navigationViewStyle(StackNavigationViewStyle())
} }
private func performSearch() { private func performSearch() {