You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
WatchOSPlayer/MusicPlayer Watch App/PlaybackView.swift

33 lines
580 B

//
// PlaybackView.swift
// MusicPlayer Watch App
//
// Created by BillSun on 3/18/23.
//
import SwiftUI
struct PlaybackView: View {
2 years ago
var placeholder: Image? = nil
var body: some View {
placeholder == nil ?
nil : placeholder!.resizable().scaledToFill()
}
init() {}
2 years ago
init(parent:ContentView, music: IDStr) {
if music.art != nil {
self.placeholder = music.art!
}
}
}
struct PlaybackView_Previews: PreviewProvider {
static var previews: some View {
PlaybackView()
}
}