mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Set the tab index when the expanded player is shown
This commit is contained in:
parent
0c7f5174c7
commit
a59c9910a0
1 changed files with 5 additions and 2 deletions
|
|
@ -299,6 +299,9 @@
|
|||
}.padding(.bottom, 16)
|
||||
}
|
||||
.padding(EdgeInsets(top: 0, leading: 0, bottom: 0, trailing: 0))
|
||||
.onAppear {
|
||||
self.tabIndex = audioController.currentAudioIndex
|
||||
}
|
||||
.onChange(of: audioController.state, perform: { state in
|
||||
// Reset the tabIndex when we load a new audio item
|
||||
if state == .loading {
|
||||
|
|
@ -321,11 +324,11 @@
|
|||
TextToSpeechLanguageView()
|
||||
.navigationBarTitle("Language")
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
.navigationBarItems(leading: Button(action: { self.showLanguageSheet = false }) {
|
||||
.navigationBarItems(leading: Button(action: { self.showLanguageSheet = false }, label: {
|
||||
Image(systemName: "chevron.backward")
|
||||
.font(.appNavbarIcon)
|
||||
.tint(.appGrayTextContrast)
|
||||
})
|
||||
}))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue