adlibber
adlibber

Reputation: 177

Editing Swift markup on the iPad Playgrounds app

It does not appear possible to edit previous markup on the iOS Swift Playgrounds app directly. The only way that I have found is to export the file into an Xcode Playground, perform the editing, then re-import it back into the iOS app. This is a bit long winded! Has anyone found a simpler method?

Running latest Swift Playgrounds app under iOS 12.2 on an iPad Pro 2018.

Upvotes: 2

Views: 348

Answers (1)

jraufeisen
jraufeisen

Reputation: 3877

You are right, the markup part of a playground page can only be changed in an external editor. So your workflow Testing on iPad -> Editing in Xcode -> Syncing with iPad is just fine.

Currently, this seems to be the philosophy behind Swift Playgrounds. The developer is intended to build a playground in Xcode, which the user can experience on their iPad. This includes the restriction to certain editable regions within a playground page. The user is not (yet) supposed to change major parts of the source code (including markup parts) solely on iPad.

Upvotes: 1

Related Questions