mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Update Music Player
This commit is contained in:
parent
1441f83388
commit
ccd0732294
3 changed files with 30 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue