Skip to content

Latest commit

 

History

History
58 lines (52 loc) · 1.91 KB

README.md

File metadata and controls

58 lines (52 loc) · 1.91 KB

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