Let's Build Connect 4 Game in SwiftUI

Build game from start to finish in iOS and SwiftUI
Free tutorial
Rating: 3.0 out of 5 (1 rating)
966 students
54min of on-demand video
English [Auto]

Build Connect 4 Game in SwiftUI
Learn SwiftUI
Build Simple Game AI Logic in Swift
Build Game to Play Against Computer


  • Knowledge of iOS
  • Knowledge of Swift
  • Knowledge of SwiftUI


SwiftUI makes building UI fun and it can even be used to build games. In this video course we will do just that.

We will build Connect 4 game in SwiftUI, without the use of SpriteKit. This course is designed to teach you SwiftUI and building games in SwiftUI. You will build game logic to play this Connect 4 game against computer. We will build logic in such a way where with simple computation, we will give computer a logistic artificial intelligence and let computer play against player to try to block and will the game. You will learn to build UI to simulate disc drop visualization just with simple grid computation.

We will learn to use user defaults and newly introduced property wrapper called app storage, which makes is easy to deal with user defaults. With the help of AppStorage you will be able to use store and fetch data in user defaults while using those variables just like any other state or binding variables.

This course is designed for students who already have exposure to iOS development and know basics of SwiftUI.

Hope you join us in this journey to build this amazingly simple yet complex game and play it on your devices. thank you!

Who this course is for:

  • Anyone who wants to build game in SwiftUI


Learn by Doing. Practical Approach to Solve Common Problems
DevTechie DT
  • 4.2 Instructor Rating
  • 19 Reviews
  • 1,288 Students
  • 11 Courses

Hello World from DevTechie. We have several years of experience working for big tech companies to small startups with 40+ years of combined experience in developing apps and softwares. We believe in sharing the knowledge gained over the years and would like to invite you to join us in this journey. We cover end to end development for mobile, web, backend as well as data science and machine learning.

Top companies trust Udemy

Get your team access to Udemy's top 16,000+ courses