Created
September 13, 2021 23:10
-
-
Save rudrankriyam/795e55ceb35425a37fdc70b9c6bbb443 to your computer and use it in GitHub Desktop.
ShazamMusicRow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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