Table of Contents​
📝About​
- 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.
💻How to Build​
- Complete code implementation from API through front-facing modern UX/UI.
- Questions and answers pulled from
OpenTriviadatabase. - Separated into 10 random
QuestionViewandAnswerViewcomponents. - Modify data from
OpenTrivia APIpull by converting to markdown and utilizingAttributedString. - Calculates final score and allows user to regenerate new set of q/a.
🔧Tools Used​
References​
OpenTrivia APIhelper: https://opentdb.com/api_config.phpOpenTrivia APIendpoint: https://opentdb.com/api.php?amount=10.AttributedString: https://designcode.io/swiftui-handbook-markdown-attributed-string