- Built a Trivia game application "Trivial Trivia" from scratch using
SwiftUI
. - iOS native; does not work on: Android, web.
- Feel free to try yourself for fun, or modify to make your own versions.
- Complete code implementation from API through front-facing modern UX/UI.
- Questions and answers pulled from
OpenTrivia
database. - Separated into 10 random
QuestionView
andAnswerView
components. - Modify data from
OpenTrivia API
pull by converting to markdown and utilizingAttributedString
. - Calculates final score and allows user to regenerate new set of q/a.
OpenTrivia API
helper: https://opentdb.com/api_config.phpOpenTrivia API
endpoint: https://opentdb.com/api.php?amount=10.AttributedString
: https://designcode.io/swiftui-handbook-markdown-attributed-string