Refine queue header controls

This commit is contained in:
lucast committed 2026-10-09 01:50:08 +02:00
1 parent 4be9eb84b6
commit c72596ef44
1 file changed
+11 -6
+11 -6
View File
@@ -56,16 +56,21 @@ struct FullscreenPlayerView: View {
.accessibilityLabel("Swipe down to close player") .accessibilityLabel("Swipe down to close player")
if isQueuePresented { if isQueuePresented {
Button {
withAnimation(.spring(response: 0.42, dampingFraction: 0.88)) {
isQueuePresented = false
}
} label: {
queueArtwork(for: track, size: 56) queueArtwork(for: track, size: 56)
.matchedGeometryEffect( .matchedGeometryEffect(
id: "fullscreen-current-artwork", id: "fullscreen-current-artwork",
in: queueArtworkNamespace, in: queueArtworkNamespace,
isSource: isQueuePresented isSource: isQueuePresented
) )
.position( }
x: size.width * 0.08 + 28, .buttonStyle(.plain)
y: size.height * 0.12 + 39 .accessibilityLabel("Show player")
) .position(x: size.width * 0.08 + 28, y: size.height * 0.12 + 39)
} else { } else {
artwork artwork
.frame(width: artworkLength, height: artworkLength) .frame(width: artworkLength, height: artworkLength)
@@ -215,10 +220,10 @@ struct FullscreenPlayerView: View {
VStack(alignment: .leading, spacing: 3) { VStack(alignment: .leading, spacing: 3) {
Text(track?.name ?? "") Text(track?.name ?? "")
.font(.system(size: 22, weight: .semibold)) .font(.system(size: 18, weight: .semibold))
.lineLimit(1) .lineLimit(1)
Text(artistNames) Text(artistNames)
.font(.system(size: 17)) .font(.system(size: 14))
.foregroundStyle(.white.opacity(0.68)) .foregroundStyle(.white.opacity(0.68))
.lineLimit(1) .lineLimit(1)
} }