The app contains a set of multiple-choice questions that the user must answer within a given time limit. The questions are fetched from an API and cover various topics, such as history, geography, literature, and science.
The app stores the scores of the users who complete the quiz and displays them on a leaderboard. The leaderboard is updated in real-time and shows the top scorers.
The app uses an API to fetch the questions for the quiz. The API is reliable and provides a wide variety of questions, ensuring that the quiz is always fresh and challenging.
SwiftUI
iOS 12.0 or later
Clone the repository to your local machine. Open the project in Xcode. Build and run the app on a simulator or a physical device.
When you launch the app, you will be taken to the home screen, where you can choose to start a new quiz or view the leaderboard. If you select "Start Quiz," you will be presented with a set of multiple-choice questions that you must answer within a given time limit. Once you complete the quiz, your score will be saved to the leaderboard. If you select "Leaderboard," you will be taken to a screen that displays the top scorers.