Skip to content

Instantly share code, notes, and snippets.

@rudrankriyam
Created September 13, 2021 23:10
Show Gist options
  • Save rudrankriyam/795e55ceb35425a37fdc70b9c6bbb443 to your computer and use it in GitHub Desktop.
Save rudrankriyam/795e55ceb35425a37fdc70b9c6bbb443 to your computer and use it in GitHub Desktop.
ShazamMusicRow
import SwiftUI
struct ShazamMusicRow: View {
var item: SHMediaItem
var body: some View {
ZStack {
ArtworkImage(url: item.artworkURL) { image in
image
.scaledToFill()
.layoutPriority(-1)
.overlay(Color.black.opacity(0.8))
.transition(.opacity.combined(with: .scale))
}
ShazamMusicCard(item: item)
.background(.ultraThinMaterial)
}
.cornerRadius(12.0)
.padding(4.0)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment