How to download .sks files with Swift Playground embedded in the workspace?

The documentation for fileNamed: when loading scenes from .sks files it says:

The name of the file, without a file extension.
The file must be in the app’s main bundle and have a .sks filename extension.

My use on the playground:

if let scene = PlanetsScene(fileNamed: "PlanetsScene") 

Is there a workaround for this? Material that runs on the Playground does not seem to have access to the core set of applications. I have embedded my playground in the project workspace and can access all the other classes that I installed publicly, but cannot just upload files .sks.

+6
source share
1 answer

Can you put symbolic links to the source files *.skson your playground Resources?

0

All Articles