Images added to Resource Folder in Playground Not Found

Why are images added to Resource folder in Playgrounds still not being found?

Please show code, not through a partial screenshot.

Screenshot says "Ready to continue". Where did you stop code ?

How did you add the image to the project ?

I tested in playground, with Test.png in the Resources folder as well

import UIKit
import PlaygroundSupport

let image = UIImage(named: "Test.png")!
let uiImageView = UIImageView(image: image)

It does work (image is found, not nil).

So try to close and reopen the project.

Note: by convention, names in Swift do not use underscore, but camelCase: sampleImage

Images added to Resource Folder in Playground Not Found
 
 
Q