mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Open the audio player expanded the first time the user uses it. Minimize animation issues
This commit is contained in:
parent
663ccc1dc1
commit
0c7f5174c7
3 changed files with 6 additions and 2 deletions
|
|
@ -111,7 +111,9 @@
|
|||
func viewArticle() {
|
||||
if let objectID = audioController.itemAudioProperties?.objectID {
|
||||
NSNotification.pushReaderItem(objectID: objectID)
|
||||
dismiss()
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + .milliseconds(100)) {
|
||||
dismiss()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
import Models
|
||||
import Services
|
||||
import SwiftUI
|
||||
import Utils
|
||||
import Views
|
||||
|
||||
public struct MiniPlayer: View {
|
||||
|
|
@ -11,7 +12,7 @@
|
|||
@Environment(\.colorScheme) private var colorScheme: ColorScheme
|
||||
private let presentingView: AnyView
|
||||
|
||||
@State var expanded = false
|
||||
@AppStorage(UserDefaultKey.audioPlayerExpanded.rawValue) var expanded = true
|
||||
|
||||
init<PresentingView>(
|
||||
presentingView: PresentingView
|
||||
|
|
|
|||
|
|
@ -18,4 +18,5 @@ public enum UserDefaultKey: String {
|
|||
case textToSpeechDefaultLanguage
|
||||
case textToSpeechPreloadEnabled
|
||||
case recentSearchTerms
|
||||
case audioPlayerExpanded
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue