Play, pause and play from the beginning in swiftui (bug with playback reset) #2620
gerchicov-vg
started this conversation in
General
Replies: 1 comment 1 reply
-
|
I'm actually also confused why this doesn't reset progress -- it boils down to a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have read your article:
#2189
In my particular case I have a button which works as "pause" and "restart play from the beginning" (depending on playback state).
According to your article I should switch between states:
.paused.playing(.fromProgress(0, toProgress: 1, loopMode: .loop))Instead of resetting to start it continues playback from the paused position.
Beta Was this translation helpful? Give feedback.
All reactions