Courses & TutorialsProgramming

Awesome Swift Playgrounds – Massive Collection of Resources

Spread the love

A curated list of awesome Swift playgrounds.

Downloading all the playgrounds

Unless otherwise indicated, all playgrounds are compatible with Swift 3.

All the playgrounds are available as submodules in the playgrounds/ directory, to download them all in one go, just clone this repository with git clone --recursive or execute git submodule update --init after you have cloned the repository the usual way.

Apple’s playgrounds distributed as zip archives have to be downloaded manually.


🌟 = My personal favorites

🍁 = Swift 4+ Playground

⏳ = Pre-Swift 3 Playground



Playgrounds that can be run on your iPad

Learning Swift

Some interesting playgrounds to learn Swift

Learning Swift: Advanced Topics

Advanced topics, useful once you have mastered the basics of the language

Design Patterns

Protocol Oriented Programming

Functional Reactive Programming

Apple’s Playgrounds

Playgrounds from Apple, usually presented at some WWDC

WWDC Students Submissions

Playgrounds submitted by students for the WWDC scholarship

Playgrounds about Playgrounds

Playgrounds that describe what you can do with playgrounds

Playgrounds from Playgroundbooks

Playgrounds derived from iPad Swift Playgroundbooks

Theoretical Computer Science

Algorithms and Data Structures

Algorithms and data structures implemented in Swift

  • Animated Sorting Algorithms – Swift 4 playgrounds to view and manipulate sorting algorithms.🍁
  • Expressions – Arithmetic and logical expressions elegantly modeled and visualized using protocol-oriented binary trees.🍁
  • Swift Algorithm Club – Algorithms and data structures in Swift with explanations. 🌟
  • Sorting Experiments – Alluring experiments with sorting algorithms in Swift, sort of.
  • Visual Binary Trees – Effortless visualization of arbitrary Binary Trees, along with their pluggable traversal implementations. 🌟
  • Julia Fractal Playground – A Swift playground that generates beautiful Julia set fractal images.
  • A Star – Protocol oriented A* pathfinding algorithm implementation in Swift 4.🍁
  • Sorting Algorithms – Live Visualization of some famous sorting algorithms and your experiments.
  • DataStructures Playground – Data Structures and Algorithms in Swift. ⏳
  • Swiftography – Standard cryptographic algorithms in a Swift Playground. ⏳
  • Algorithms Playground – Various algorithm implementation in Swift. ⏳
  • The Jelly Bean Problem – The Jelly Bean problem from Wait But Why. ⏳
  • Euclidean Strings – A playground leveraging ReSwift to generate Euclidean Strings. ⏳


Programming language interpreters implemented in Swift

Machine Learning

UIKit And Graphics

A list of playgrounds that demostrate various aspect of UIKit and other graphical frameworks

Core Image


  • Metalbrot – Interactive playground that draws the Mandelbrot fractal with Metal. 🌟
  • METAL Playground – Apple Metal framework playground. 🌟 ⏳




Sounds and music

  • Bach Playground – A Simple Swift Playground that plays a brief piece by Bach with AVAudioEngine and AVMIDIPlayer.
  • PlayerNode Playground – Playground using AVAudioEngine with a playernode and effects to play an audio file. 🌟
  • Miles – A Swift Playground that creates jazz improvisations in any key using AudioToolbox and AVFoundation.


Live math with playgrounds

Libraries and APIs

Library tutorials, in a playground

  • AudioKit Playgrounds – 130+ Audio synthesis, processing, playback, and analysis playgrounds with AudioKit.
  • AIToolbox – A set of playgrounds showing machine learning algorithms, all implemented with pieces of the AIToolbox framework code.
  • Cognitive Service APIs – Get started with the Microsoft Cognitive Services APIs.
  • Rx Playground – A playground with RxSwift examples.

Playground Sets

Sets of playgrounds about various topics


What doesn’t fit anywhere else, but still awesome

  • Rubik’s Cube – Implementing basic model and behavior of Rubic’s Cube in Swift. 🍁
  • Icon Creator – Create app icons on Swift playground.
  • 2048 Playground – The 2048 game implemented with a playground.
  • SwiftShell – Bash shell in a playground.
  • LaunchPad Playground – A playground that simulates a real LaunchPad for making music.
  • Super Maze – A programmatic maze generator and solver.
  • Tic Tac Toe – Tic tac toe in a playground.
  • Pixel Art Maker – A playground where you can make pixel art.
  • SwiftCoin – A simplistic blockchain & cryptocurrency in a playground.
  • SentimentlySwift – Sentiment analysis in Swift.
  • SwiftChain – Simple Cryptocurrency in a Swift Playground.
  • Game Boards – Chess, checkers, tic-tac-toe, sudoku and many others in playground. 🌟 ⏳
  • StarWars Seals – Emblems from Star Wars in Swift playgrounds via CoreGraphics and UIViews. ⏳
  • SwiftFiles – Save, Load and Delete files easily from within a Swift playground. ⏳
  • Earth photos – A slideshow of Earth photos taken by DSCOVR/EPIC. 🌟 ⏳

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button