Search code examples
swiftxcodexcplayground

Can I put multiple playground files into one Xcode workbook?


I am using Xcode Playgrounds to make tutorials about Swift. I was wondering, can I put multiple playground files into one Xcode workbook? I want one workbook with multiple playground tutorials in it.


Solution

  • You can right click on your top level file and select the "New Playground Page" button, which will give you a separate page.

    new page

    The below image shows the new page created after you click that button. "Untitled Page" is the initial page, and "Untitled Page 2" is the new page.

    new page