Let’s Build Connect 4 Game in SwiftUI

Let's Build Connect 4 Game in SwiftUI

Let’s Build Connect 4 Game in SwiftUI

Build game from start to finish in iOS and SwiftUI

Language: english

Note: 0/5 (0 notes) 372 students  New course 

Instructor(s): DevTechie DT

Last update: 2022-05-15

What you’ll learn

  • 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


Course content

  • Introduction
    • Introduction
  • Connect 4 Game
    • Project Setup
    • Game UI Part 1
    • Game UI Part 2
    • Game UI Bug Fix
    • Game Logic
    • Settings Screen


Let's Build Connect 4 Game in SwiftUILet's Build Connect 4 Game in SwiftUI


Don’t miss any coupons by joining our Telegram group 

Udemy Coupon Code 100% off | Udemy Free Course | Udemy offer | Course with certificate