mirror of
https://github.com/cranci1/Sora.git
synced 2026-01-11 20:10:24 +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) {
|
||||
super.viewDidDisappear(animated)
|
||||
player?.pause()
|
||||
if let timeObserverToken = timeObserverToken {
|
||||
player?.removeTimeObserver(timeObserverToken)
|
||||
self.timeObserverToken = nil
|
||||
|
|
@ -94,4 +95,4 @@ class VideoPlayerViewController: UIViewController {
|
|||
UserDefaults.standard.set(duration, forKey: "totalTime_\(fullURL)")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,9 +35,9 @@ struct LibraryView: View {
|
|||
.padding()
|
||||
}
|
||||
}
|
||||
.navigationViewStyle(StackNavigationViewStyle())
|
||||
.navigationTitle("Library")
|
||||
}
|
||||
.navigationViewStyle(StackNavigationViewStyle())
|
||||
}
|
||||
|
||||
var emptyLibraryView: some View {
|
||||
|
|
|
|||
|
|
@ -108,13 +108,13 @@ struct SearchResultsView: View {
|
|||
}
|
||||
}
|
||||
}
|
||||
.navigationViewStyle(StackNavigationViewStyle())
|
||||
.navigationTitle("Results")
|
||||
.toolbar {
|
||||
filterMenu
|
||||
}
|
||||
}
|
||||
}
|
||||
.navigationViewStyle(StackNavigationViewStyle())
|
||||
.onAppear {
|
||||
performSearch()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@ struct SearchView: View {
|
|||
}
|
||||
}) {
|
||||
Text(historyItem)
|
||||
.foregroundColor(.primary)
|
||||
}
|
||||
}
|
||||
.onDelete(perform: searchHistoryManager.deleteHistoryItem)
|
||||
|
|
|
|||
|
|
@ -118,7 +118,6 @@ struct SettingsView: View {
|
|||
}
|
||||
}
|
||||
}
|
||||
.navigationViewStyle(StackNavigationViewStyle())
|
||||
.navigationTitle("Settings")
|
||||
.sheet(isPresented: $isDocumentPickerPresented) {
|
||||
DocumentPicker(
|
||||
|
|
@ -143,6 +142,7 @@ struct SettingsView: View {
|
|||
Text(importErrorMessage)
|
||||
}
|
||||
}
|
||||
.navigationViewStyle(StackNavigationViewStyle())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue