Playgrounds

repo: uraimo/Awesome-Swift-Playgrounds
category: Programming Languages related: Swift · Ios


Awesome Swift Playgrounds [

A curated list of awesome Swift playgrounds.

Contributing

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.

Tags

🌟 = My personal favorites

🍁 = Swift 4+ Playground

⏳ = Pre-Swift 3 Playground

Contents

WWDC Students Submissions

Playgrounds submitted by students for the WWDC scholarship

PlaygroundBooks

Playgrounds that can be run on your iPad

Learning Swift

Some interesting playgrounds to learn Swift

  • [What's new in Swift 4](https://github.com/ole/whats-new-in-swift-4) - An Xcode playground showing off the new features in Swift 4.0. 🍁 🌟
  • [What's new in Swift 4.2](https://github.com/ole/whats-new-in-swift-4-2) - An Xcode playground showing off the new features in Swift 4.2. 🍁 🌟
  • Codable Playground - Playground that demonstrates advanced uses of Codable. 🍁
  • Generics In Swift - Playground that explains generics. 🍁
  • Swift String Cheat Sheet - A quick guide to using Strings with Swift. 🍁
  • About Swift - A playground about Swift language. 🍁
  • [The Swift Programming Language Playgrounds](https://github.com/danielpi/Swift-Playgrounds) - 40+ playgrounds, one for each chapter of Apple's Swift book. 🌟
  • Swift Hack Pack - Collection of playgrounds that teaches Swift.
  • [The Swift Summary Book](https://github.com/jakarmy/swift-summary) - A summary of Apple's Swift language. 🌟
  • Swifter Tips - Examples for every feature of the Swift language.
  • MPCS51032 UChicago iOS Course - Playgrounds from the 2017 Spring iOS course of the University of Chicago.

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

  • Apple's Mandelbrot Playground - A playground with the mandelbrot fractal (updated to Swift 3 by @palmerc, @kemalenver).
  • Interactive Newton's Cradle - Apple's interactive playground of a Newton's Cradle where collisions and gravity are applyed with UIKit dynamics. 🌟 (updated to Swift 3 by @p-sun)
  • Apple's Balloons Playground - The balloons playground showed at WWDC14. ⏳
  • Apple's Crustacean Playground - Protocol-Oriented Programming with Value Types. ⏳
  • [Apple's Swift Standard Library Playground](https://developer.apple.com/sample-code/swift/downloads/Standard-Library.zip) - experiment with Swift standard library types and high-level concepts using visualizations and practical examples. ⏳

Playgrounds about Playgrounds

Playgrounds that describe what you can do with playgrounds

Playgrounds from Playgroundbooks

Playgrounds derived from iPad Swift Playgroundbooks

  • [iPad Swift Playgrounds](https://github.com/kushtaneja/iPad_Swift_Playgrounds) - The sample playgroundbooks converted to playgrounds.

Theoretical Computer Science

Algorithms and Data Structures

Algorithms and data structures implemented in Swift

Languages

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

  • Interpolation Playground - Playground demonstrating lerp, smooth step, Catcall-Rom and others! ⏳
  • [CoreImage for Swift Playgrounds](https://github.com/FlexMonkey/CoreImageForSwiftPlaygrounds) - Growing collection of CoreImage playgrounds from the upcoming book "CoreImage For Swift". 🌟 ⏳
  • Image Processor - Implementing different image filter algorithms. ⏳

Metal

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

Animations

SpriteKit

Audio

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.
  • Rhythm Snap - A Swift Playground using Vision and AVFoundation to help you practice rhythm in a fun way.🍁

Mathematics

Live math with playgrounds

Libraries and APIs

Library tutorials, in a playground

Playground Sets

Sets of playgrounds about various topics

Miscellaneous

What doesn't fit anywhere else, but still awesome

[[curator]]
I'm the Curator. I can help you navigate, organize, and curate this wiki. What would you like to do?