Structuring Content

Add content to a playground book by creating new folders and property lists.

้‡่ฆๅ…ƒ็ด 

  • books๏ผšpackage root-level Swift Playgrounds content.

  • chapters๏ผšgroup pages and cutscenes within a book.

  • pages๏ผšwrite the primary teaching or exploratory content of the book.

  • modules๏ผšimplement live views and provide the APIs learners write code against.

  • user-editable modules๏ผšgive learners a space to store and reuse code.

  • Intersperse cutscenes with pages๏ผšintroduce or summarize concepts.

Each part of a playground book must include a manifest property list that contains metadata and references to shared resources.

Last updated