From 3a054629655de295e38d479b3e15543ac63432fb Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Mon, 29 Aug 2022 17:57:43 +0200 Subject: [PATCH] Music mode controls layout improvements --- Model/Player/PlayerModel.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Model/Player/PlayerModel.swift b/Model/Player/PlayerModel.swift index 54881a09..eb0bdd1e 100644 --- a/Model/Player/PlayerModel.swift +++ b/Model/Player/PlayerModel.swift @@ -609,6 +609,7 @@ final class PlayerModel: ObservableObject { } func closeCurrentItem(finished: Bool = false) { + controls.hide() pause() closePiP() @@ -960,12 +961,16 @@ final class PlayerModel: ObservableObject { musicMode.toggle() if musicMode { + aspectRatio = VideoPlayerView.defaultAspectRatio controls.presentingControls = true controls.removeTimer() backend.startMusicMode() } else { backend.stopMusicMode() + Delay.by(0.25) { + self.updateAspectRatio() + } controls.resetTimer() }