Skip to content

πŸ’‘ Trivia quiz iOS app created with SwiftUI. Utilizes OpenTriviaDB API to fetch questions.

License

Notifications You must be signed in to change notification settings

nealarch01/TriviaQuizApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Trivia Quiz iOS App

iOS Trivia app that uses OpenTriviaDatabase API

  • Implemented in SwiftUI
  • MVVM Architecture
  • API Fetching and JSON decoding
  • Light and Dark Mode UI
  • Relative Component Sizing / Positioning
  • Responsive User Interface for iPhones

Project Structure

./iOSTrivia
β”œβ”€β”€ Assets.xcassets
β”‚Β Β  β”œβ”€β”€ AccentColor.colorset
β”‚Β Β  β”‚Β Β  └── Contents.json
β”‚Β Β  β”œβ”€β”€ AppIcon.appiconset
β”‚Β Β  β”‚Β Β  └── Contents.json
β”‚Β Β  β”œβ”€β”€ BackgroundColor.colorset
β”‚Β Β  β”‚Β Β  └── Contents.json
β”‚Β Β  β”œβ”€β”€ Contents.json
β”‚Β Β  └── ContrastColor.colorset
β”‚Β Β      └── Contents.json
β”œβ”€β”€ Components
β”‚Β Β  β”œβ”€β”€ OptionButton.swift
β”‚Β Β  └── ProgressBar.swift
β”œβ”€β”€ Extensions
β”‚Β Β  └── Extensions.swift
β”œβ”€β”€ Models
β”‚Β Β  β”œβ”€β”€ Answer.swift
β”‚Β Β  β”œβ”€β”€ Category.swift
β”‚Β Β  └── Question.swift
β”œβ”€β”€ Preview Content
β”‚Β Β  └── Preview Assets.xcassets
β”‚Β Β      └── Contents.json
β”œβ”€β”€ Services
β”‚Β Β  └── TriviaService.swift
β”œβ”€β”€ ViewModels
β”‚Β Β  β”œβ”€β”€ ContentViewModel.swift
β”‚Β Β  β”œβ”€β”€ QuestionsViewModel.swift
β”‚Β Β  └── TriviaOptionsViewModel.swift
β”œβ”€β”€ Views
β”‚Β Β  β”œβ”€β”€ ContentView.swift
β”‚Β Β  β”œβ”€β”€ QuestionsView.swift
β”‚Β Β  └── TriviaOptionsView.swift
└── iOSTriviaApp.swift

Screenshots

Screenshot 2023-02-06 at 5 24 38 PM

Screenshot 2023-02-06 at 5 24 46 PM

Video

Screen.Recording.2022-08-27.at.6.42.16.PM.mov

Attributions:

Trivia questions and category obtained from https://opentdb.com

About

πŸ’‘ Trivia quiz iOS app created with SwiftUI. Utilizes OpenTriviaDB API to fetch questions.

Topics

Resources

License

Stars

Watchers

Forks

Languages