mirror of
https://github.com/cranci1/Sora.git
synced 2026-04-21 00:22:12 +00:00
fixed navigation stack
This commit is contained in:
parent
c9ffadc530
commit
2b8b93d3d1
6 changed files with 6 additions and 4 deletions
Binary file not shown.
|
|
@ -71,6 +71,7 @@ class VideoPlayerViewController: UIViewController {
|
||||||
|
|
||||||
override func viewDidDisappear(_ animated: Bool) {
|
override func viewDidDisappear(_ animated: Bool) {
|
||||||
super.viewDidDisappear(animated)
|
super.viewDidDisappear(animated)
|
||||||
|
player?.pause()
|
||||||
if let timeObserverToken = timeObserverToken {
|
if let timeObserverToken = timeObserverToken {
|
||||||
player?.removeTimeObserver(timeObserverToken)
|
player?.removeTimeObserver(timeObserverToken)
|
||||||
self.timeObserverToken = nil
|
self.timeObserverToken = nil
|
||||||
|
|
@ -94,4 +95,4 @@ class VideoPlayerViewController: UIViewController {
|
||||||
UserDefaults.standard.set(duration, forKey: "totalTime_\(fullURL)")
|
UserDefaults.standard.set(duration, forKey: "totalTime_\(fullURL)")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -35,9 +35,9 @@ struct LibraryView: View {
|
||||||
.padding()
|
.padding()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.navigationViewStyle(StackNavigationViewStyle())
|
|
||||||
.navigationTitle("Library")
|
.navigationTitle("Library")
|
||||||
}
|
}
|
||||||
|
.navigationViewStyle(StackNavigationViewStyle())
|
||||||
}
|
}
|
||||||
|
|
||||||
var emptyLibraryView: some View {
|
var emptyLibraryView: some View {
|
||||||
|
|
|
||||||
|
|
@ -108,13 +108,13 @@ struct SearchResultsView: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.navigationViewStyle(StackNavigationViewStyle())
|
|
||||||
.navigationTitle("Results")
|
.navigationTitle("Results")
|
||||||
.toolbar {
|
.toolbar {
|
||||||
filterMenu
|
filterMenu
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.navigationViewStyle(StackNavigationViewStyle())
|
||||||
.onAppear {
|
.onAppear {
|
||||||
performSearch()
|
performSearch()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -67,6 +67,7 @@ struct SearchView: View {
|
||||||
}
|
}
|
||||||
}) {
|
}) {
|
||||||
Text(historyItem)
|
Text(historyItem)
|
||||||
|
.foregroundColor(.primary)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.onDelete(perform: searchHistoryManager.deleteHistoryItem)
|
.onDelete(perform: searchHistoryManager.deleteHistoryItem)
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,6 @@ struct SettingsView: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.navigationViewStyle(StackNavigationViewStyle())
|
|
||||||
.navigationTitle("Settings")
|
.navigationTitle("Settings")
|
||||||
.sheet(isPresented: $isDocumentPickerPresented) {
|
.sheet(isPresented: $isDocumentPickerPresented) {
|
||||||
DocumentPicker(
|
DocumentPicker(
|
||||||
|
|
@ -143,6 +142,7 @@ struct SettingsView: View {
|
||||||
Text(importErrorMessage)
|
Text(importErrorMessage)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.navigationViewStyle(StackNavigationViewStyle())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue