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.
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.
You can right click on your top level file and select the "New Playground Page" button, which will give you a separate 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.
You can create either Empty Project or Workspace to manage your multiple playground files under one roof.
1. Empty Project:
File -> New -> ProjectOther and Select EmptyProject Navigator2. Workspace:
File -> New -> WorkspaceProject Navigator