Swift Playground show hidden-code and other tags, unable to open Playground

I made a Swift Playground on my iPad and added some hidden-code tags, but now I can't seem to find or change the hidden code anymore in my Playground Page.
I also added a hidden-code tag with a missing end tag, but now I can't seem to open my Swift Playground at all.

It gives me the following error message: "Error parsing source tags, Missing end tag for hidden-code".
I only have the option to press OK, but this prevents me from opening the Playground. This is on both the iPad and MacOS app.

I'm having the exact same issue, have you found a workaround yet?
Unfortunately I haven’t. Luckily I made a copy of the file on my MacBook so I have been able to continue working on it but I still can’t open the original file on my iPad.

It’s really frustrating, since I have read the official documentation about these tags but there is no mention of removing them.
Hmm, this is very odd. Did you copy the Playground after this error happened or did you manage to make a backup?
Airdrop/email your playground to your mac. There open the code file (NOT the playground). Then edit your code file in xcode to fix any errors. Then you can airdrop/email the playground back to your iPad.
What code file? I can't find any file to edit in my .playgroundbook file. Also I am on Mac, so any help on how to edit the original .swift file would be very much appreciated.
You can right-click on your playground book file (in finder), and press show package contents, to view the inside of your playground book, which contains all of your files. There, you have to navigate to the code file that you want to edit.

If you're using author's template, check it out a template that i made, where i used hidden code: https://github.com/dudamello/TemplateWWDC
Hope it helps
As said earlier, you could edit the source swift file by navigating to it on the mac by right clicking on your playground and selected 'Show Package Contents' and do the same for the UserEdits.diffpack in Edits folder inside the playground where all the code you have written in the swift playground apps!

As said earlier, you could edit the source swift file by navigating to it on the mac by right clicking on your playground and selected 'Show Package Contents' and do the same for the UserEdits.diffpack in Edits folder inside the playground where all the code you have written in the swift playground apps!

Thanks this helped a lot! I managed to remove the unclosed tag that was cause the error by opening the main.swift.delta file in text editor, but when looking through this file it seems it only contains the code that wasn't hidden. I'm still unable to find the original code that I hid in any of the Chapters folder in the UserEdits.diffpack.






Maybe you could try to look in the usermodules folder in the edits folder or try looking in the contents folder instead of the edits folder! Hope you find your code! If my above suggestion helped please upvote it 😀😀
Swift Playground show hidden-code and other tags, unable to open Playground
 
 
Q