iOS: fix sleep timer and AirPlay button size issues
- Fix chapter-based sleep timer not resetting when auto-advancing to next chapter (sleepTimerStartChapter now updates in handlePlaybackFinished) - Fix AirPlay button being too large compared to other toolbar icons (constrain to 22×22)
This commit is contained in:
@@ -400,6 +400,11 @@ final class AudioPlayerService: ObservableObject {
|
|||||||
audioURL = url
|
audioURL = url
|
||||||
status = .ready
|
status = .ready
|
||||||
generationProgress = 100
|
generationProgress = 100
|
||||||
|
|
||||||
|
// Update sleep timer start chapter if using chapter-based timer
|
||||||
|
if case .chapters = sleepTimer {
|
||||||
|
sleepTimerStartChapter = next
|
||||||
|
}
|
||||||
|
|
||||||
generationTask = Task {
|
generationTask = Task {
|
||||||
await playURL(url)
|
await playURL(url)
|
||||||
|
|||||||
@@ -467,6 +467,7 @@ struct FullPlayerView: View {
|
|||||||
HStack(spacing: 0) {
|
HStack(spacing: 0) {
|
||||||
// AirPlay
|
// AirPlay
|
||||||
AirPlayButton()
|
AirPlayButton()
|
||||||
|
.frame(width: 22, height: 22)
|
||||||
.frame(maxWidth: .infinity)
|
.frame(maxWidth: .infinity)
|
||||||
|
|
||||||
// Settings (Speed control)
|
// Settings (Speed control)
|
||||||
|
|||||||
Reference in New Issue
Block a user