Improve animations

This commit is contained in:
Arkadiusz Fal
2022-05-30 21:00:53 +02:00
parent 48ba498183
commit ba79a3b664
2 changed files with 12 additions and 3 deletions

View File

@@ -206,9 +206,11 @@ final class PlayerModel: ObservableObject {
}
func play(_ video: Video, at time: CMTime? = nil, showingPlayer: Bool = true) {
pause()
var delay = 0.0
#if !os(macOS)
delay = 0.3
#if os(iOS)
delay = 0.5
#endif
DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in