Swift > Playgrounds
Contents
WWDC Students Submissions
Playgrounds submitted by students for the WWDC scholarship
Playgrounds submitted by students for the WWDC scholarship
Playgrounds submitted by students for the WWDC scholarship
Playgrounds submitted by students for the WWDC scholarship
Playgrounds submitted by students for the WWDC scholarship
Playgrounds submitted by students for the WWDC scholarship
Playgrounds submitted by students for the WWDC scholarship
Playgrounds submitted by students for the WWDC scholarship
Playgrounds submitted by students for the WWDC scholarship
Playgrounds submitted by students for the WWDC scholarship
Mathematics
Learn more about this pattern you see every day, but probably never knew it was really carefully designed.
A Swift playground exploring Lindemayer systems.
A playground for implementing the natural numbers and more concepts in number theory.
Interactive playground to experiment with roulettes and polygons.
Abstract algebra concepts implemented in Swift.
Using the Accelerate framework and Swift for Linear Algebra.
A collection of swift playground about mathematics.
PlaygroundBooks
Accessibility for iOS developers.
Swift Playground for interacting with IBM's TJBot.
An interactive Swift Playground Book about Binary Search Trees.
A tutorial to implement a pong based on a simple AI.
A neural network Swift playground, with no third party dependencies.
Playground for an experimental window manager.
A set of playgrounds using AudioKit designed for the iPad Playgrounds app.
A swift playground book that mimics some of the features of numpy and jupyter notebook.
Simple File Browser for Swift Playgrounds on iOS.
In this course your students will learn the fundamentals of Swift 3 programming, using geometry as their context for learning.
A Swift playgroundbook about Image Filtering.
A Swift Playground visualizing gravity based on Einstein's Theory of General Relativity.
A Swift PlaygroundBook about Neural Networks.
Core ML examples for Swift Playgrounds.
An SF Symbols Viewer for Swift Playgrounds.
A JavaScript REPL using JavaScriptCore.
for learning the basics of ARKit through interactive lessons.
Learning Swift
An Xcode playground showing off the new features in Swift 4.0.
An Xcode playground showing off the new features in Swift 4.2.
Playground that demonstrates advanced uses of Codable.
Playground that explains generics.
A quick guide to using Strings with Swift.
A playground about Swift language.
40+ playgrounds, one for each chapter of Apple's Swift book.
Collection of playgrounds that teaches Swift.
A summary of Apple's Swift language.
Examples for every feature of the Swift language.
Playgrounds from the 2017 Spring iOS course of the University of Chicago.
Learning Swift: Advanced Topics
Learn Core Data experimenting directly in this playground.
Demonstration of using Swift Playgrounds in Test Driven Development with XCTest.
Concurrency and Parallelism in iOS.
An introduction to Core Data.
Implementation of a DSL in Swift.
A micro web server that replies "Hello world!" to every request, an example of how to use sockets in Swift.
A playground to learn regular expressions with Swift.
Clean & simple Swift networking stack playground.
A playground showing how Swift makes Strings, Colors, Fonts, Images, etc easier to deal with.
Swift KVO playground.
Learn everythig about NSDate.
Examples about using C with Swift.
How to avoid retain cycles, from this post.
Design Patterns
The Principles of OOD based on Uncle Bob articles.
Learning GoF's Design Patterns in Swift 3.
Sample projects for MVC, MVP, MVVM, and VIPER.
Design patterns in Swift 3.
Learn all 23 Gang of Four patterns using Swift.
Protocol Oriented Programming
Adaptation of the Protocol-Oriented Programming in Swift talk from WWDC 2015.
A playground to explore Protocol Extensions.
An example of how to use Protocol Oriented Programming with the battleship game.
Apple's Playgrounds
Playgrounds about Playgrounds
Playgrounds from Playgroundbooks
Theoretical Computer Science
Playground to visualize functional programming with graphical sequences.
Object-Oriented Programming in Functional Programming in Swift.
Logic programming in Swift.
Exploration of function composition in Swift.
Learn about monads.
A few functional programming concept and patterns.
A little tutorial that explains transducers.
Companion to the article: Swift Functors, Applicatves, and Monads in Pictures.
A playground to introduce Functors in Swift, and their practical usage.
Algorithms and Data Structures
Swift 4 playgrounds to view and manipulate sorting algorithms.
Arithmetic and logical expressions elegantly modeled and visualized using protocol-oriented binary trees.
Algorithms and data structures in Swift with explanations.
Alluring experiments with sorting algorithms in Swift, sort of.
Effortless visualization of arbitrary Binary Trees, along with their pluggable traversal implementations.
A Swift playground that generates beautiful Julia set fractal images.
Protocol oriented A* pathfinding algorithm implementation in Swift 4.
Data Structures and Algorithms in Swift.
Standard cryptographic algorithms in a Swift Playground.
Various algorithm implementation in Swift.
The Jelly Bean problem from Wait But Why.
A playground leveraging ReSwift to generate Euclidean Strings.
Languages
Great introduction to the inner workings of compilers.
Simple Swift interpreter for the Pascal language inspired by the Let’s Build A Simple Interpreter article series.
A playground explaining how to create a tiny programming language named Mu.
A playground for learning Assembly language through Swift.
Let's Build a Compiler by Jack Crenshaw translated to Swift Playgrounds.
A register-based VM in a Swift playground.
A playground with Logo-like commands.
Brainfuck interpreter written in Swift using Playground.
UIKit And Graphics
Interesting examples of use of UIStackViews.
Some playgrounds to better understand UIBezierPaths.
Playgrounds to experiment interactively with UIKit views.
Multiple Playgrounds using almost every behaviour of UIDynamic.
Draw a logo or any text with the WWDC16 ASCII texture.
Swift playground for generating animated GIFs.
Shows a technique for blurring an image behind the characters behind one or more UILabels.
An animated clock in a swift playground.
A swift playground for creating awesome animations for your WatchKit Apps.
Showing how to use Swift2 protocol extensions to render errors in UIViews and UIViewControllers without subclassing or creating classes.
A small playground to demonstrate image tinting in UIKit.
A playground and a series of articles on ray tracing, see also part 2, 3, 4, 5
Drawing the WWDC16 logo in a playground.
Core Image
Playground demonstrating lerp, smooth step, Catcall-Rom and others!
Growing collection of CoreImage playgrounds from the upcoming book "CoreImage For Swift".
Implementing different image filter algorithms.
Metal
Animations
A set of interesting Core Animation playgounds.
Playground demonstrating UIViewPropertyAnimator.
A SpriteKit experiment to simulate the WWDC2017 logo crowd.
How to get a Duet style trailing effect in SpriteKit.
Experiment with multiple additive animations in Core Animation.
Companion to Apple's Core Animation Programming Guide.
Playground demonstrating effects of CAMediaTiming properties.
SpriteKit
The Xcode 9 ARKit SpriteKit demo as a playground.
Playground for exploring Sprite Kit.
Demonstrates how to perform physics collision detection using Swift and SpriteKit.
Experiment with SceneKit and Swift.
A 3D earth model written in swift playground using SceneKit.
Audio
A Simple Swift Playground that plays a brief piece by Bach with AVAudioEngine and AVMIDIPlayer.
Playground using AVAudioEngine with a playernode and effects to play an audio file.
A Swift Playground that creates jazz improvisations in any key using AudioToolbox and AVFoundation.
A Swift Playground using Vision and AVFoundation to help you practice rhythm in a fun way.
Libraries and APIs
Library tutorials, in a playground
A set of playgrounds showing machine learning algorithms, all implemented with pieces of the AIToolbox framework code.
Get started with the Microsoft Cognitive Services APIs.
A playground with RxSwift examples.
Playground Sets
Great collection of interesting playgrounds, for fun and for profit.
My playgrounds, various topics.
A set of useful extensions from @PublicExtension.
Various playgrounds.
Various playgrounds.c
Playground versions of select articles from Cocoa with Love.
Various Playgrounds.
A few playgrounds to showcase Swift peculiar features.
Various playgrounds.
Playgrounds that show basic Swift, JSON parsing, sending HTTP requests and basic file IO.
Various playgrounds.
Various playgrounds.
Miscellaneous
Implementing basic model and behavior of Rubic's Cube in Swift.
Create app icons on Swift playground.
The 2048 game implemented with a playground.
Bash shell in a playground.
A playground that simulates a real LaunchPad for making music.
A programmatic maze generator and solver.
Tic tac toe in a playground.
A playground where you can make pixel art.
A simplistic blockchain & cryptocurrency in a playground.
Sentiment analysis in Swift.
Simple Cryptocurrency in a Swift Playground.
Chess, checkers, tic-tac-toe, sudoku and many others in playground.
Emblems from Star Wars in Swift playgrounds via CoreGraphics and UIViews.
Save, Load and Delete files easily from within a Swift playground.
A slideshow of Earth photos taken by DSCOVR/EPIC.