Square mini player artwork
This commit is contained in:
1 parent
b7ac719ca0
commit
9e82949c1d
2 files changed
+3
-1
No files matched your search
@@ -41,6 +41,7 @@ struct MainTabView: View {
|
||||
|
||||
private struct PlayerBottomAccessory: View {
|
||||
@Environment(\.tabViewBottomAccessoryPlacement) private var placement
|
||||
@Environment(\.displayScale) private var displayScale
|
||||
|
||||
let track: Track
|
||||
let isPlaying: Bool
|
||||
@@ -67,6 +68,7 @@ private struct PlayerBottomAccessory: View {
|
||||
.frame(maxWidth: placement == .inline ? 320 : .infinity)
|
||||
.glassEffect(.regular.tint(.black.opacity(0.36)), in: Capsule())
|
||||
.shadow(color: .black.opacity(placement == .inline ? 0 : 0.08), radius: 8, y: 3)
|
||||
.offset(y: 1 / displayScale)
|
||||
.transition(.move(edge: .bottom).combined(with: .opacity))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user