Swift Playgrounds For Mac
Awesome Swift Playgrounds A curated list of awesome Swift playgrounds. Contributing Please take a quick look at the first.
Thanks to all; 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 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. PlaygroundBooks Playgrounds that can be run on your iPad. 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 iOS10 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. π. Learn more about this pattern you see every day, but probably never knew it was really carefully designed.
π. Accessibility for iOS developers. π Learning Swift Some interesting playgrounds to learn Swift.
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. A playground about Swift language.
Playgrounds from the 2017 Spring iOS course of the University of Chicago. An Xcode playground showing off the new features in Swift 4.0. π π. Playground that demonstrates advanced uses of Codable π Learning Swift: Advanced Topics Advanced topics, useful once you have mastered the basics of the language. 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. β³ Design Patterns. 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. The Principles of OOD based on Uncle Bob articles.
π 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.
β³ Functional Reactive Programming. The easiest way to get a taste of ReactiveCocoa.
β³. Companion to the article: ReactiveCocoa made Simple With Swift.
β³ Apple's Playgrounds Playgrounds from Apple, usually presented at some WWDC. A playground with the mandelbrot fractal (updated to Swift 3 by @palmerc, @kemalenver).
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). The balloons playground showed at WWDC14. β³. Protocol-Oriented Programming with Value Types. β³. 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. Better looking tests for playgrounds. Exploring interactivity in Playgrounds. Make iOS app mockups in Swift 2.x playgrounds. β³ Playgrounds from Playgroundbooks Playgrounds derived from iPad Swift Playgroundbooks. The sample playgroundbooks converted to playgrounds.
Theoretical Computer Science. Logic programming in Swift.
π. Exploration of function composition in Swift. π. Playground to visualize functional programming with graphical sequences.
π π. Learn about monads. A few functional programming concept and patterns. Object-Oriented Programming in Functional Programming in Swift. π. 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 Algorithms and data structures implemented in Swift. 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. π.
Live Visualization of some famous sorting algorithms and your experiments. Swift 4 playgrounds to view and manipulate sorting algorithms. π.
Arithmetic and logical expressions elegantly modeled and visualized using protocol-oriented binary trees. π. 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 Programming language interpreters implemented in Swift. Great introduction to the inner workings of compilers. π.
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.
π. Simple Swift interpreter for the Pascal language inspired by the Letβs Build A Simple Interpreter article series. π. A register-based VM in a Swift playground. π β³.
A playground with Logo-like commands. π β³. Brainfuck interpreter written in Swift using Playground.
β³ Machine Learning. Neural Network built in Apple Playground using Swift.
π UIKit And Graphics A list of playgrounds that demostrate various aspect of UIKit and other graphical frameworks. Interesting examples of use of UIStackViews.
π. Some playgrounds to better understand UIBezierPaths. Playgrounds to experiment interactively with UIKit views. Animated check mark button.
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, π β³. 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. Interactive playground that draws the Mandelbrot fractal with Metal. π.
Apple Metal framework playground. π β³ 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. β³ SpriteKit. Playground for exploring Sprite Kit. Demonstrates how to perform physics collision detection using Swift and SpriteKit. β³. Experiment with SceneKit and Swift.
β³. The Xcode 9 ARKit SpriteKit demo as a playground. π. A 3D earth model written in swift playground using SceneKit. Audio Sounds and music. 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. Mathematics Live math with playgrounds.
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.
Swift Playgrounds For Mac
β³. Numerical argorithms playground from Ray Wenderlich. β³. Learn more about this pattern you see every day, but probably never knew it was really carefully designed.
π Libraries and APIs Library tutorials, in a playground. 130+ Audio synthesis, processing, playback, and analysis playgrounds with AudioKit. 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 Sets of playgrounds about various topics. A set of useful extensions from. π. Great collection of interesting playgrounds, for fun and for profit. π. My playgrounds, various topics. 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 What doesn't fit anywhere else, but still awesome. 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. Implementing basic model and behavior of Rubic's Cube in Swift. π.
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. π β³. Simple Cryptocurrency in a Swift Playground.
Learn and Explore In Swift Playgrounds you create small programs called βplaygroundsβ that instantly show the results of the code that you write. A single line of code can make amazing things happen. Interactive lessons teach key coding concepts, and additional challenges and templates encourage you to explore code in exciting new ways and to create something completely unique. There are even playgrounds that use Bluetooth to control robots, drones, and other hardware accessories. Itβs easy to share your creations with friends, or record and post videos of your playgrounds in action. Psi ops: mind conspiracy for mac. The Swift programming language was designed to be approachable enough to be your very first programming language. Swift is also incredibly powerful, used by professional developers to create thousands of apps in the App Store.
Using Swift Playgrounds, you will code real programs within minutes and even as you become more proficient, you will never outgrow Swift. Swift Playgrounds also gives you access to iOS frameworks such as UIKit, SpriteKit, SceneKit, Bluetooth, and Metal. And because you are coding and running your playgrounds on iPad, your code can respond to touch gestures or interact with hardware such as the accelerometer and gyroscope. Experiment with Code Sometimes the best way to learn is to explore on your own, and Swift Playgrounds is a great place to let your imagination run wild. In addition to the lessons that help you learn to code, Swift Playgrounds delivers new challenges on a regular basis so you can keep coming back to try something new.
Some challenges are fun ways to play with code to create interesting effects, while others include engrossing puzzles that requires all of your coding skills to solve. Additional templates included in Swift Playgrounds help you get started creating a playground from scratch.
With access to thousands of APIs in the iOS SDK, you can create amazing playgrounds that explore the web, generate 3D worlds, experiment with physics, and much more. The included playgrounds can be edited, extended, remixed, or completely reinvented. Collaborate with friends or reimagine them on your own. Built for Touch Because Swift Playgrounds was designed from the ground up for touch, you can create entire programs with only a few taps on the iPad screen. Unique coding features include:.
Swift Playgrounds Machine Learning
QuickType for code. The Shortcut Bar intelligently presents the most likely next commands or values based on context.
Its easy to write entire lines of code without touching a keyboard. Touch to edit. Tap to edit a number in-place with a pop-over keypad, or touch a color value to display a color picker. You can even restructure your code by simply dragging a brace to wrap around the surrounding code. Library of snippets. Common code snippets such as loops, structures, and switch statements can be dragged out of a library to create new code with a lot less typing.
Coding keyboard. Quickly type numbers and symbols commonly used in Swift coding by simply dragging your finger across a key to select one of the alternate symbols.
Swift Playgrounds helps you write correct code by identifying mistakes as you type, and offers suggestions to help correct the errors. Command Robots, Pilot Drones, and More Swift Playgrounds includes accessories playgrounds that teach you how to use Swift code to command LEGO MINDSTORMS EV3 robots that you build, guide a Sphero SPRK+ robot around the room, pilot a Parrot drone, or even teach a MeeBot to dance. Swift Playgrounds includes guided lessons for each accessory, as well as template starting points you can use to write your own programs that control the following devices:. LEGO MINDSTORMS EV3.
Sphero SPRK+. Parrot drones Mambo, Rolling Spider, and Airborne. MeeBot by Jimu Robots. Dash by Wonder Workshop. Skoog musical instrument Because Swift Playgrounds uses real Swift and iOS code with access to the Bluetooth radio on iPad any developer can create a playground to connect to additional robots and and devices, then share them with the world. Create New Content with Xcode Playgrounds were first introduced as a way to experiment with your code in Xcode, and now with Swift Playgrounds you can easily use those same playgrounds on iPad. ICloud Drive seamlessly shares your Mac playgrounds with your iPad, and changes you make on either device are immediately updated.
This is especially useful when exploring iOS code that uses the iPad touch gestures, gyroscope, and other hardware features. Become an Author If you are already an experienced developer, you can create incredible playgrounds to share with the next generation of coders. The interactivity of playgrounds combined with the power of the iOS SDK gives developers an entirely new way to express their creativity and skills. Playgrounds authors can now create experiences on iPad for new audiences β those just starting to explore code, others who crave new challenges, and advanced developers seeking to learn new techniques and technologies.
Swift Playgrounds has new features designed to take advantage of the immersive experience on iPad, including full-screen animations for topic introductions, assessment checks, and always-on live views. The format to use these new features is available to everyone on the, and can be used by experienced Xcode developers to create even more playgrounds and challenges. We canβt wait to see what Apple developers create to make coding even more fun and easy.