What’s the difference between a Blank and an Xcode Playground?

In Playgrounds on iPadOS, what’s the difference between these 2 types of playgrounds?

For the life of me I cannot find any documentation about this.

Answered by OOPer in 695695022

I cannot find any documentation about this.

It's a pity many of the templates do not contain enough documentations.

As far as I tried, the template Xcode Playground will create a file package with extension .playground, which is compatible with Xcode Playground.

On the other hand, the template Blank creates a file package of .playgroundbook, which is compatible with Swift Playgrounds for iPad and Swift Playgrounds for Mac. This is the common behavior as in most other templates.

You may already know but Xcode Playground is a part of Xcode, Apple's official tool to develop apps for Apple's platforms.

So, if you want to make something which needs to be compatible with Xcode, you should choose the template Xcode Playground.

But, as there's Swift Playgrounds for Mac, you would rarely need the template Xcode Playground.


By the way, you should better respond to the answers (or comments, possibly) you get. Many readers prefer to write answers to the questions of which the authors respond properly.

Accepted Answer

I cannot find any documentation about this.

It's a pity many of the templates do not contain enough documentations.

As far as I tried, the template Xcode Playground will create a file package with extension .playground, which is compatible with Xcode Playground.

On the other hand, the template Blank creates a file package of .playgroundbook, which is compatible with Swift Playgrounds for iPad and Swift Playgrounds for Mac. This is the common behavior as in most other templates.

You may already know but Xcode Playground is a part of Xcode, Apple's official tool to develop apps for Apple's platforms.

So, if you want to make something which needs to be compatible with Xcode, you should choose the template Xcode Playground.

But, as there's Swift Playgrounds for Mac, you would rarely need the template Xcode Playground.


By the way, you should better respond to the answers (or comments, possibly) you get. Many readers prefer to write answers to the questions of which the authors respond properly.

What’s the difference between a Blank and an Xcode Playground?
 
 
Q