Male teacher assists young male student with a program on an iPad.

Everyone Can Code

Technology has a language. It’s called code. And we believe coding is an essential skill. Learning to code teaches you how to solve problems and work together in creative ways. And it helps you build apps that bring your ideas to life. We think everyone should have the opportunity to create something that can change the world. So we’ve designed a new approach to coding that lets anyone learn, write and teach it.

So, what is code anyway?

Code powers virtually everything around us. When you turn your car on, code lets your key talk to the engine. When you want pizza, code places your online order. And when you use your favourite apps, code lets you send a message, share a photo or swap faces with your cat.

Front-facing iPhone with food ordering app showing a variety of restaurant options.
Swift icon

We made a coding language for everyone.

An open MacBook with a split screen view shows a section of the Swift code needed to create a Newton’s Cradle on the left half of its screen; the right half of the screen displays the resulting Newton’s Cradle. To the left of the MacBook is an iPhone with a constellation visible on its screen. Partially obscured behind the MacBook is an iPad whose screen displays a Disney app with an overhead view of a boat on a river.

We designed Swift to be easy to use. It lets you see what you’re creating with code as you write it. Type your code on the left and immediately see the result on the right. It uses lots of words and phrases you already know, like “print”, “add” and “remove”. And Swift is not just great for getting started with code — it’s also incredibly powerful. In fact, some of the world’s most popular apps are created in Swift.

An open MacBook with a split screen view shows a section of the Swift code needed to create a Newton’s Cradle on the left half of its screen; the right half of the screen displays the resulting Newton’s Cradle. To the left of the MacBook is an iPhone with a constellation visible on its screen. Partially obscured behind the MacBook is an iPad whose screen displays a Disney app with an overhead view of a boat on a river.

We’ve reinvented how you learn to code too.

An iPad with a teal background displays the text “You’re about to learn Swift code so you can give commands to your character, Byte. Walk, jump, walk.” A small animated character stands below the text next to a traffic light. Behind and slightly to the right of the iPad, an open MacBook displays a screen in Xcode with the title “Connect the River Markers” and shows a river image overlaid with a grid and markers of various colours.

We put as much thought into how you learn Swift as we put into designing the language itself. For first-time coders, there’s Swift Playgrounds, an iPad app that makes getting started fun and interactive. With the built-in Learn to Code lessons, you’ll use real code to solve puzzles and meet characters you can control with just a tap. If you’re ready to start building your first app, the Intro to App Development with Swift book will help you learn how from start to finish. You’ll learn the basics and experiment with playgrounds in Xcode, the software used to make apps on your Mac.

Learn more about Swift Playgrounds

An iPad with a teal background displays the text “You’re about to learn Swift code so you can give commands to your character, Byte. Walk, jump, walk.” A small animated character stands below the text next to a traffic light. Behind and slightly to the right of the iPad, an open MacBook displays a screen in Xcode with the title “Connect the River Markers” and shows a river image overlaid with a grid and markers of various colours.

Bring coding into your school.

We’ll give you ideas for lessons and group activities that work in the classroom or in after-school programmes. You’ll also find presentations, tips and ways to track your students’ progress.

Learn more about Apple Teacher

Learn to Code 1 & 2: Teacher Guide book cover

Download Learn to Code 1 & 2: Teacher Guide

App Development with Swift Teacher Guide book cover

Download Learn to Code 3: Teacher Guide

App Development with Swift Teacher Guide book cover

Download Intro to App Development with Swift: Teacher Guide

Coding resources.

Swift icon

Swift

A more detailed look at Swift for coders at every level.

Learn moreabout Swift.

Developer site logo

Educator Forums

Get access to free technical resources like video and sample code.

Educator Forumsabout the Developer Site.

iTunes U icon

Books, Courses and Apps

Check out resources to support learning and teaching coding.

Learn moreabout Books, Courses and Apps