How do we display an image in a SwiftUI playground? I put a png file in the Resources folder called "test.png" and this is my code and it displays a blank white screen. I tried putting an xcassets file containing the image into Resources and still I get a blank white screen. What do I need to do?
import SwiftUI
import PlaygroundSupport
struct ContentView: View {
var body: some View {
Image("test")
}
}
PlaygroundPage.current.setLiveView(ContentView())