mirror of
https://github.com/samsonjs/ControlCenter_iOS.git
synced 2026-03-25 09:15:48 +00:00
42 lines
1,022 B
Swift
42 lines
1,022 B
Swift
//
|
|
// NowPlayingControl.swift
|
|
// ControlCenter_iOS
|
|
//
|
|
// Created by Sami Samhuri on 2020-06-25.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct NowPlayingControl: View {
|
|
var body: some View {
|
|
ControlBackground {
|
|
HStack {
|
|
Rectangle()
|
|
.fill(Color(.systemGray2))
|
|
.frame(width: 50, height: 50)
|
|
.cornerRadius(3)
|
|
.opacity(0.5)
|
|
|
|
Spacer()
|
|
|
|
Button(action: {}) {
|
|
Image(systemName: "play.fill")
|
|
.foregroundColor(Color(.secondaryLabel))
|
|
}
|
|
Button(action: {}) {
|
|
Image(systemName: "forward.fill")
|
|
.foregroundColor(Color(.secondaryLabel))
|
|
}
|
|
}
|
|
.padding()
|
|
}
|
|
}
|
|
}
|
|
|
|
struct NowPlayingControl_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
LightAndDarkPreviews {
|
|
NowPlayingControl()
|
|
}
|
|
}
|
|
}
|