From 59afca0cd1a8ddbba75eee1f63b699b7b9262b44 Mon Sep 17 00:00:00 2001 From: Walid Kayhal <3347810+waliid@users.noreply.github.com> Date: Thu, 16 May 2024 09:09:52 +0200 Subject: [PATCH] Align the loading indicator to the right when the UI is hidden (#886) --- Demo/Sources/Players/PlaybackView.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Demo/Sources/Players/PlaybackView.swift b/Demo/Sources/Players/PlaybackView.swift index 72bb23d4b..b041f8c0c 100644 --- a/Demo/Sources/Players/PlaybackView.swift +++ b/Demo/Sources/Players/PlaybackView.swift @@ -188,8 +188,9 @@ private struct MainView: View { Spacer() HStack(spacing: 20) { LoadingIndicator(player: player) - VolumeButton(player: player) - .opacity(shouldHideInterface ? 0 : 1) + if !shouldHideInterface { + VolumeButton(player: player) + } } } .topBarStyle()