How to add images to swift playgrounds on iPad?

Please help me by telling how to add images in the swift playground app in iPad... I tried adding by the + button but the playground crashed during execution. It told me that it couldn’t run it saying - “There was a problem encountered while running this playground. Check your code for mistakes.” So, please tell me a detailed step by step how to add images to a playground in the playgrounds app on iPad.

Replies

You should be more specific to get help...

  • The exact lesson were you encountered the problem
  • Where in the code you tried to add the image and doing what
  • And f you wrote or tweaked the code before having your problem you shoul also post it, so that an eventual bug could be found.

I made my own blank playground. Adding an image shows that there was a problem. The plus button in the top right does not add an image literal too.