mirror of
https://github.com/cranci1/Sora.git
synced 2026-04-21 08:32:00 +00:00
more fixes for mediainfoview + search
This commit is contained in:
parent
0160564378
commit
9feabeaa41
3 changed files with 5 additions and 5 deletions
|
|
@ -103,7 +103,6 @@ struct MediaInfoView: View {
|
||||||
.navigationBarHidden(true)
|
.navigationBarHidden(true)
|
||||||
.navigationBarTitleDisplayMode(.inline)
|
.navigationBarTitleDisplayMode(.inline)
|
||||||
.navigationBarTitle("")
|
.navigationBarTitle("")
|
||||||
.navigationViewStyle(StackNavigationViewStyle())
|
|
||||||
.ignoresSafeArea(.container, edges: .top)
|
.ignoresSafeArea(.container, edges: .top)
|
||||||
.onAppear {
|
.onAppear {
|
||||||
if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
|
if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
|
||||||
|
|
@ -287,7 +286,6 @@ struct MediaInfoView: View {
|
||||||
}
|
}
|
||||||
.navigationBarTitleDisplayMode(.inline)
|
.navigationBarTitleDisplayMode(.inline)
|
||||||
.navigationBarTitle("")
|
.navigationBarTitle("")
|
||||||
.navigationViewStyle(StackNavigationViewStyle())
|
|
||||||
.ignoresSafeArea(.container, edges: .top)
|
.ignoresSafeArea(.container, edges: .top)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,9 @@ struct SearchView: View {
|
||||||
@State private var saveDebounceTimer: Timer?
|
@State private var saveDebounceTimer: Timer?
|
||||||
@State private var searchDebounceTimer: Timer?
|
@State private var searchDebounceTimer: Timer?
|
||||||
|
|
||||||
private let columns = [GridItem(.adaptive(minimum: 150))]
|
private var columns: [GridItem] {
|
||||||
|
Array(repeating: GridItem(.flexible(), spacing: 16), count: columnsCount)
|
||||||
|
}
|
||||||
|
|
||||||
init(searchQuery: Binding<String>) {
|
init(searchQuery: Binding<String>) {
|
||||||
self._searchQuery = searchQuery
|
self._searchQuery = searchQuery
|
||||||
|
|
@ -122,7 +124,6 @@ struct SearchView: View {
|
||||||
}
|
}
|
||||||
.navigationBarHidden(true)
|
.navigationBarHidden(true)
|
||||||
}
|
}
|
||||||
.navigationViewStyle(StackNavigationViewStyle())
|
|
||||||
.onAppear {
|
.onAppear {
|
||||||
loadSearchHistory()
|
loadSearchHistory()
|
||||||
if !searchQuery.isEmpty {
|
if !searchQuery.isEmpty {
|
||||||
|
|
@ -161,6 +162,7 @@ struct SearchView: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.navigationViewStyle(StackNavigationViewStyle())
|
||||||
}
|
}
|
||||||
|
|
||||||
private func lockOrientation() {
|
private func lockOrientation() {
|
||||||
|
|
@ -217,6 +217,7 @@
|
||||||
0402DA122DE7B5EC003BB42C /* SearchView */ = {
|
0402DA122DE7B5EC003BB42C /* SearchView */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
|
133D7C7C2D2BE2630075467E /* SearchView.swift */,
|
||||||
0402DA162DE7B7B8003BB42C /* SearchViewComponents.swift */,
|
0402DA162DE7B7B8003BB42C /* SearchViewComponents.swift */,
|
||||||
0402DA0F2DE7B5EC003BB42C /* SearchComponents.swift */,
|
0402DA0F2DE7B5EC003BB42C /* SearchComponents.swift */,
|
||||||
0402DA102DE7B5EC003BB42C /* SearchResultsGrid.swift */,
|
0402DA102DE7B5EC003BB42C /* SearchResultsGrid.swift */,
|
||||||
|
|
@ -353,7 +354,6 @@
|
||||||
133D7C7F2D2BE2630075467E /* MediaInfoView */,
|
133D7C7F2D2BE2630075467E /* MediaInfoView */,
|
||||||
1399FAD22D3AB34F00E97C31 /* SettingsView */,
|
1399FAD22D3AB34F00E97C31 /* SettingsView */,
|
||||||
133F55B92D33B53E00E08EEA /* LibraryView */,
|
133F55B92D33B53E00E08EEA /* LibraryView */,
|
||||||
133D7C7C2D2BE2630075467E /* SearchView.swift */,
|
|
||||||
);
|
);
|
||||||
path = Views;
|
path = Views;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue