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

Was this helpful?