Questions when working with a Swift Playgrounds App

Hi All. This is my first year for applying for the WWDC23 Swift Student challenge. I have some questions regarding a Swift Playgrounds App:

  1. How to I access the Info.plist file for the application so I can add the correct usage description for using the on-device camera.

  2. How can I use core data? Seems like it is not allowed within a Swift Playgrounds App.

  3. Would submitting an Xcode project jeopardize my submission since I'm having such trouble?

Thank you

Hi,

  1. It's slightly different in Swift Playgrounds, you use the 'capabilities' editor in the playgrounds app.

https://i.imgur.com/5Lp7R83.mp4

  1. You can but there are a few limitations, there are lots of tutorials relating directly to Swift Playgrounds and CoreData online. e.g. https://www.cephalopod.studio/blog/build-an-app-on-ipad-with-swift-playgrounds-and-core-data

  2. You can use Xcode but you must make sure that your project is a swift playgrounds app project:

It must not be a .xcodeproject or anything else. Your final submission should be a .swiftpm file that you then use the 'Compress' option on MacOS/iPadOS to put in a zip file that you can upload in the final form. I'd recommend testing in the actual swift playgrounds app if you have it available.

Hope this is helpful, Freddie

Questions when working with a Swift Playgrounds App
 
 
Q