From c72596ef447362d9207c36df710250af27c3b2a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20T=C3=A4kker?= Date: Fri, 9 Oct 2026 01:50:08 +0200 Subject: [PATCH] Refine queue header controls --- Music/View/Player/FullscreenPlayerView.swift | 29 ++++++++++++-------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/Music/View/Player/FullscreenPlayerView.swift b/Music/View/Player/FullscreenPlayerView.swift index f7a4a45..adda8e7 100644 --- a/Music/View/Player/FullscreenPlayerView.swift +++ b/Music/View/Player/FullscreenPlayerView.swift @@ -56,16 +56,21 @@ struct FullscreenPlayerView: View { .accessibilityLabel("Swipe down to close player") if isQueuePresented { - queueArtwork(for: track, size: 56) - .matchedGeometryEffect( - id: "fullscreen-current-artwork", - in: queueArtworkNamespace, - isSource: isQueuePresented - ) - .position( - x: size.width * 0.08 + 28, - y: size.height * 0.12 + 39 - ) + Button { + withAnimation(.spring(response: 0.42, dampingFraction: 0.88)) { + isQueuePresented = false + } + } label: { + queueArtwork(for: track, size: 56) + .matchedGeometryEffect( + id: "fullscreen-current-artwork", + in: queueArtworkNamespace, + isSource: isQueuePresented + ) + } + .buttonStyle(.plain) + .accessibilityLabel("Show player") + .position(x: size.width * 0.08 + 28, y: size.height * 0.12 + 39) } else { artwork .frame(width: artworkLength, height: artworkLength) @@ -215,10 +220,10 @@ struct FullscreenPlayerView: View { VStack(alignment: .leading, spacing: 3) { Text(track?.name ?? "") - .font(.system(size: 22, weight: .semibold)) + .font(.system(size: 18, weight: .semibold)) .lineLimit(1) Text(artistNames) - .font(.system(size: 17)) + .font(.system(size: 14)) .foregroundStyle(.white.opacity(0.68)) .lineLimit(1) }