1. All Workshops
  2. experimental


Introduction to iOS game development with Swift

Created by @zach-cmiel

Hack Club logoComputer Science Tutorials


Introduction to iOS game development with Swift

Created by @zach-cmiel

You can find this tutorial online at https://hackclub.com/workshops/swiper


What You Are Going To Make

This tutorial is an introduction to iOS Game Development with Swift. Along with making a fun and simple game, you will learn the basics of:

  • Xcode (where you code the app)
  • Swift (the language you write in)

Here is a demo of the final game:

How to Use This Tutorial

Don’t feel obligated to follow this tutorial step-by-step. Everybody learns at their own pace and with their own style. Here are some suggestions on how to get the most out of this tutorial:

If you have never programmed before:

  • No worries! Walk through the tutorial step-by-step!

If you have programmed a little:

  • Follow along or skim through this tutorial step-by-step.

If you have more experience:

  • You already know the basics of coding. Maybe you have followed one of the other game workshops here and you want to learn about iOS development. Jump around in this tutorial to get the most out of it. Feel free to skip some sections and make the game your own.


1. Set Up Xcode
2. Create Play Screen
3. Create the Walls
4. Create Score Label

5. Create Box Spawning

6. Swipe Functionality

7. Add Collision Detection
8. Create Retry Screen

How was this workshop?

(your feedback is anonymous + appreciated ❤️)

Made something fabulous?

Spotted an issue?

Suggest edits