Awesome Swift Playgrounds
A curated list of awesome Swift playgrounds.
Please take a quick look at the
contribution guidelines first. Thanks to all contributors; you rock!
If you see a playground here that does not work anymore with the current release of Xcode or is not a good fit, please submit a pull request to improve this file or consider updating it, thank you!
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 https://github.com/uraimo/Awesome-Swift-Playgrounds.git 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
Tree Trouble Playbook - An interactive Swift Playground Book about Binary Search Trees.
Auto Pong - A tutorial to implement a pong based on a simple AI.
Neural Network Playground - A neural network Swift playground, with no third party dependencies.
Window Manager Playground - Playground for an experimental window manager.
AudioKit Playground Book - A set of playgrounds using AudioKit designed for the iOS10 Playgrounds app.
Numsw - A swift playground book that mimics some of the features of numpy and jupyter notebook. 65 4
File Browser Playground - Simple File Browser for Swift Playgrounds on iOS. 184 13
Geometry with Swift - In this course your students will learn the fundamentals of Swift 3 programming, using geometry as their context for learning.
Image Filtering - A Swift playgroundbook about Image Filtering. 🌟
Spacetime Rhapsody - A Swift Playground visualizing gravity based on Einstein's Theory of General Relativity. 🌟
Some interesting playgrounds to learn Swift
Learning Swift: Advanced Topics
Advanced topics, useful once you have mastered the basics of the language
Protocol Oriented Programming
Functional Reactive Programming
Playgrounds from Apple, usually presented at some WWDC
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
Programming language interpreters implemented in Swift
UIKit And Graphics
A list of playgrounds that demostrate various aspect of UIKit and other graphical frameworks
Metalbrot - Interactive playground that draws the Mandelbrot fractal with Metal. 🌟
METAL Playground - Apple Metal framework playground. 19 1 🌟 ⏳
Sounds and music
Bach Playground - A Simple Swift Playground that plays a brief piece by Bach with AVAudioEngine and AVMIDIPlayer. 2 1
PlayerNode Playground - Playground using AVAudioEngine with a playernode and effects to play an audio file. 4 6 🌟
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. 590 63
Cognitive Service APIs - Get started with the Microsoft Cognitive Services APIs. 18 2
Rx Playground - A playground with RxSwift examples.
Sets of playgrounds about various topics
What doesn't fit anywhere else, but still awesome
Icon Creator - Create app icons on Swift playground. 14 2
2048 Playground - The 2048 game implemented with a playground. 21 4
SwiftShell - Bash shell in a playground. 9 3
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. 8 1
SentimentlySwift - Sentiment analysis in Swift.
Rubik's Cube - Implementing basic model and behavior of Rubic's Cube in Swift. 🍁
Game Boards - Chess, checkers, tic-tac-toe, sudoku and many others in playground. 205 10 🌟 ⏳ - Emblems from Star Wars in Swift playgrounds via CoreGraphics and UIViews.
SwiftFiles - Save, Load and Delete files easily from within a Swift playground. 32 4 ⏳
Earth photos - A slideshow of Earth photos taken by DSCOVR/EPIC. 2 1 🌟 ⏳