Skip to content

CruelSeeker1002/WouldYouRatherGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Would You Rather – SwiftUI App 🎭

A simple and interactive "Would You Rather" game built with SwiftUI, featuring dynamic question loading from a local JSON file, clean UI design, and basic game logic. This was my first full Swift app and a fun intro to iOS development!


🧩 Features

  • 🧠 Dynamic Questions – Questions are loaded from a questions.json file using Swift's Codable system.
  • 🎨 Clean, Responsive UI – Full-screen layout with distinct color-coded options.
  • πŸ” Looping Questions – Cycles through an array of questions; wraps around when finished.
  • βš™οΈ Modular Code Structure – Logic and UI are cleanly separated across files.
  • πŸ§ͺ Console Feedback – Prints the selected option for testing/debugging.

🧱 Tech Stack

  • Language: Swift 5
  • UI Framework: SwiftUI
  • Data Handling: JSON + Codable

πŸ“Έ Screenshots

Question View
screenshot

πŸ“‚ File Structure

WouldYouRatherGame/ β”œβ”€β”€ ContentView.swift // Main UI and game logic β”œβ”€β”€ QuestionS.swift // Defines the Question model β”œβ”€β”€ LoadQuestion.swift // Loads JSON data β”œβ”€β”€ questions.json // Local question dataset

About

This is my first project in Swift and IOS development.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages