XCode 15 bug - Playground cannot find file inside Resources

I have the simplest Playground to display image. I have images inside Resources. Somewhat it does not work and I am really confused. I am using macOS XCode.

I think on iPad Swift Playground this might work.

import SwiftUI
import PlaygroundSupport


struct ContentView: View {
    var body: some View {
        Image("image1")
            .resizable()
            .frame(width: 512, height: 512)
    }
}

let hostingController = UIHostingController(rootView: ContentView())
PlaygroundPage.current.liveView = hostingController

I am testing the code with Swift Playground app on the macOS (from App Store), seems to work but the "image" comes as icon.

Were you able yo figure this out? I'm experiencing the exact same issue

XCode 15 bug - Playground cannot find file inside Resources
 
 
Q