mirror of
https://github.com/cranci1/Sora.git
synced 2026-04-21 08:32:00 +00:00
fixed some syntax and stuffs
This commit is contained in:
parent
cbddeb6eb0
commit
ac0507e615
2 changed files with 1 additions and 11 deletions
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue