Refine queue header controls
This commit is contained in:
1 parent
4be9eb84b6
commit
c72596ef44
1 file changed
+17
-12
@@ -56,16 +56,21 @@ struct FullscreenPlayerView: View {
|
|||||||
.accessibilityLabel("Swipe down to close player")
|
.accessibilityLabel("Swipe down to close player")
|
||||||
|
|
||||||
if isQueuePresented {
|
if isQueuePresented {
|
||||||
queueArtwork(for: track, size: 56)
|
Button {
|
||||||
.matchedGeometryEffect(
|
withAnimation(.spring(response: 0.42, dampingFraction: 0.88)) {
|
||||||
id: "fullscreen-current-artwork",
|
isQueuePresented = false
|
||||||
in: queueArtworkNamespace,
|
}
|
||||||
isSource: isQueuePresented
|
} label: {
|
||||||
)
|
queueArtwork(for: track, size: 56)
|
||||||
.position(
|
.matchedGeometryEffect(
|
||||||
x: size.width * 0.08 + 28,
|
id: "fullscreen-current-artwork",
|
||||||
y: size.height * 0.12 + 39
|
in: queueArtworkNamespace,
|
||||||
)
|
isSource: isQueuePresented
|
||||||
|
)
|
||||||
|
}
|
||||||
|
.buttonStyle(.plain)
|
||||||
|
.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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user