https://github.com/nealarch01/triviaquizapp
💡 Trivia quiz iOS app created with SwiftUI. Utilizes OpenTriviaDB API to fetch questions.
https://github.com/nealarch01/triviaquizapp
api-client async-await ios json-decoding mvvm swift swift5 swiftui trivia trivia-game
Last synced: 3 months ago
JSON representation
💡 Trivia quiz iOS app created with SwiftUI. Utilizes OpenTriviaDB API to fetch questions.
- Host: GitHub
- URL: https://github.com/nealarch01/triviaquizapp
- Owner: nealarch01
- License: mit
- Created: 2022-08-28T00:39:59.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-18T08:03:26.000Z (about 2 years ago)
- Last Synced: 2025-01-16T20:57:57.510Z (4 months ago)
- Topics: api-client, async-await, ios, json-decoding, mvvm, swift, swift5, swiftui, trivia, trivia-game
- Language: Swift
- Homepage:
- Size: 41 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 iPhonesProject 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![]()
## Video
https://user-images.githubusercontent.com/73256760/187053981-667881ad-fe56-4f41-a5b4-4b9689563ffb.mov## Attributions:
Trivia questions and category obtained from https://opentdb.com