How do I add an image to a node in Playgrounds for iPad?

I'm coding a project in Playgrounds for iPad, and I've run into a problem. I'm trying to create a button with SpriteKit, and I have the following code:


SKSpriteNode(imageNamed: )

How do I point to an image? I've tried using the little "plus" button in the top right-hand corner of the Playgrounds app, but I get the error "cannot convert type UIImage to expected argument type "String"". Thanks!

Replies

Unfortunately you can't add resources to a Swift playground directly on iPad.