Playgrounds in Xcode or Playgrounds in the App.
Confusingly there are multiple things called a “playground”, that have similar use cases but behave differently:
- The “Swift Playgrounds (app)” app made by Apple, available in the App Store.
- A “Playground” inside of Xcode. (This page)
Unfortunately, many features available in one are not the same in the other.
Dev Tools
Swift Package Index
- Swift Package Index has a built-in “Try in a Playground” button which uses Arena under the hood.
Arena
Arena is a macOS command line tool to create an Xcode project with a Swift Playground that’s readily set up to use a Swift Package Manager library.