A six-chapter curriculum that teaches geometry concepts using Swift — from drawing simple shapes to building a complete suburban scene — with Maths connections throughout.
Requires Swift Playgrounds 4 on iPad or Mac
Getting started
Getting the playground onto your device takes under a minute.
Here's how it works.
Download Swift Playgrounds 4 for free from the App Store on iPad or Mac. It's the app you'll use to open and run all the code in this curriculum.
Press the Subscribe in Swift Playgrounds button on this page. It opens a deep link (developer.apple.com/ul/sp0) that registers this feed directly in the app.
The Geometry Playground appears in your Subscriptions section inside Swift Playgrounds. Tap it once to download the full playground file.
Swift Playgrounds checks the feed periodically. When a new version is published a badge appears — tap once to update. No re-subscribing needed.
The curriculum
Each chapter builds on the last — introducing a new programming concept alongside the geometry it makes possible.
Meet the Pen API. Draw squares, rectangles, triangles, and stars one command at a time — laying down sequences of lines and turns to build geometric intuition.
Store side lengths, colours, and coordinates in var and let, then reuse them to build diamonds, crosses, snowflakes, and rhombuses while exploring symmetry and shape properties.
Harness the for loop to draw regular polygons, spirals, and stars. Derive the interior-angle formula from nothing but a few lines of Swift.
Use if, else, and Boolean logic to sort triangles, quadrilaterals, and angles by their properties. Meet Input() for live, interactive testing.
Define reusable functions with parameters, then call them at different scales to draw flags from around the world — exactly what similarity in geometry means.
Bring everything together. Combine functions, loops, and conditionals to build a house, a tree, a fence, a car — then compose them into a complete suburban scene.
About
Apple Distinguished Educator · Apple Professional Learning Specialist
School-Wide Technology Team Leader, Hong Kong International School
Daniel is an Apple Professional Learning Specialist and Apple Distinguished Educator from Perth, Western Australia. At Hong Kong International School he spearheaded the design and development of an inclusive, modern Computer Science program by integrating it into the NCAS Media Arts Standards.
A strong advocate for the pedagogical integration of technology, Daniel focuses on the transformative potential of STEM education, robotics, and the evolving role of AI in shaping teaching and learning. As a speaker, author, and international educator, he has written extensively on coding, app development, and the impact of emerging technologies on education.
Daniel has delivered keynotes and workshops across Australia, South-East Asia, China, and the USA — inspiring educators worldwide to embrace innovation in their teaching practice.