Create a subfolder, a manifest file, and cutscene metadata.
You can use cutscenes to show animated explanations or introductions to concepts and scenarios. You place cutscenes alongside playground pages in a chapter.
Add a Subfolder to a Chapter Folder
Add a cutscene by creating a new folder inside a chapter folder. The name of the subfolder must end with the suffix .cutscenepage. Cutscene folders require two parts: a manifest property list named
Manifest, and a PrivateResources folder that contains the HTML content of the cutscene.
Add Cutscene Resources
Place all of the resources used in a cutscene in its PrivateResources folder.
Add the Cutscene Manifest
In Xcode, create a property list file called
Manifest in the cutscene subfolder. Choose
File > New > File, then choose the Property List template from
i. Use the manifest property list to list a cutscene's name and to reference the HTML file that defines the cutscene.
The cutscene manifest property list has two keys:
Required. The path to the HTML file that contains the cutscene. The path is relative to the cutscene's PrivateResources folder.
Required. The name of the cutscene. Choose a name that will make sense to learners reading it in Swift Playgrounds.