Swift Playgrounds Compatibility – Are Swift Playgrounds Compatible with macOS and iPad?

ipadxcode

Are playgrounds created in Xcode compatible with the iPad Playgrounds app? That is, can I drop it into the iPad app's Documents folder (or otherwise use iCloud Drive, etc) to load a playground created in Xcode?

Googling neither confirms nor deny this.

Best Answer

I just tried running one on my iPad Air downloaded from this Swift Blog post as well as the ones found on the Resources Page and most of them just returned errors. You may see the attached image. Tests were run on iPad Air running iOS 11 Dev Beta & XCode playground Beta a well as further testing on an older iPad Air running iOS 10.3.3 and Xcode Playgrounds (older version)

The following error message is displayed:

Error Compiling Source

Error: Sources/CoreGraphicsDiagramView.swift:2: no such module 'XCPlayground'

Proof available at link posted below.

https://i.stack.imgur.com/t6qZY.png