Update Music Player

This commit is contained in:
Hariharan Mudaliar 2026-03-04 20:04:38 +05:30
commit ccd0732294
No known key found for this signature in database
GPG key ID: 025583EB0BE5640E
3 changed files with 30 additions and 3 deletions

View file

@ -654,10 +654,16 @@ private struct MinimalisticReminderDetailsView: View {
@State private var dragging: Bool = false
@State private var lastDragged: Date = .distantPast
/// Whether the progress timeline should be paused (no ticks).
private var isProgressTimelinePaused: Bool {
!musicManager.isPlaying || musicManager.isLiveStream || musicManager.playbackRate <= 0
}
private var progressBar: some View {
TimelineView(
.animation(
minimumInterval: (!musicManager.isLiveStream && musicManager.playbackRate > 0) ? 0.1 : nil
minimumInterval: 1.0,
paused: isProgressTimelinePaused
)
) { timeline in
MusicSliderView(