Created
January 28, 2020 03:09
-
-
Save duanebester/feba7e9c1a2e1d939d6da0b34ee504fb to your computer and use it in GitHub Desktop.
Now Playing View
This file contains hidden or 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 NowPlayingView: View { | |
var body: some View { | |
HStack(spacing: 16) { | |
Spacer() | |
ZStack { | |
Rectangle() | |
.fill(Color.primary) | |
.frame(width: 50, height: 50) | |
.cornerRadius(5) | |
.shadow(radius: 5) | |
Image(systemName: "music.note") | |
.foregroundColor(Color.secondary) | |
.padding(20) | |
.colorInvert() | |
} | |
Text("Not Playing") | |
Spacer() | |
Image(systemName: "play.fill") | |
Image(systemName: "forward.fill") | |
Spacer() | |
}.padding(6) | |
} | |
} | |
struct NowPlayingView_Previews: PreviewProvider { | |
static var previews: some View { | |
NowPlayingView() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment