Getting started with creating swift playground

Hi,

I am new to Playground (I know Swift and Objective-C a bit) but can't seem to figure out to how to create a new playground . Can someone point me to a simple tutorial ?

To create a playground,

  • open Xcode,
  • select File > New > Playground
  • select platform (iOS / MacOS)

And here you are.

For totorials, search for "Swift playground" in Apple Books.

Are you working with Swift Playgrounds (an app for iPadOS and macOS)? Or Xcode Playground (a part of Xcode)?

Swift Playground on macOS.

Actually just to be clear, I know swift and objective c but have never done iOS app programming. I am interested in creating a playground book not just learning how to code using playground. For that do I need to use Xcode and create a playground ?

Swift Playground on macOS.

Thanks for clarifying. (But Swift Playgrounds might be the right name of it.)

Start Swift Playgrounds.

Click See All beside More Playgrounds.

And then click See All beside Starting Points.

And then you can choose any of the templates to start with.

(https://support.apple.com/en-mo/guide/playgrounds/itc2207c0869/mac)


I could not find a good tutorial using the Blank template, please share your experience when you find some.

If you want to build an App, you should use Xcode. This is IDE, so you can develop on many languages.

Xcode has SwiftUI, so you can easily build an app. And can Submit to AppStore.

Getting started with creating swift playground
 
 
Q