Arena is a macOS command line utility to create Swift Playgrounds with embedded Swift Package Manager (SPM) packages. It allows you try out Swift packages with ease, in a single command:
$ arena alamofire/alamofire
➡️ Package: https://github.com/alamofire/alamofire @ from(5.3.0)
🔧 Resolving package dependencies ...
📔 Libraries found: Alamofire
✅ Created project in folder 'Arena-Playground'
Version 1.0 brings with it a few significant changes:
- a simpler project format
- it facilitates adding additional dependencies
- it is Xcode 12 only
Playgrounds work much more reliably in Xcode 12, making it very easy to try out Swift packages in a playground. And the new project format opens up the ability to add more dependencies after initial playground creation.
The following video demonstrates how to do this:
You can find out more about Arena and how to install it over on its Github page.