https://github.com/wintersolid/guesstheflag2
A simple SwiftUI game that challenges users to identify the correct flag from a list of countries.
https://github.com/wintersolid/guesstheflag2
dispatchqueue-main-asyncafter geometryreader swift5 swiftui
Last synced: about 1 month ago
JSON representation
A simple SwiftUI game that challenges users to identify the correct flag from a list of countries.
- Host: GitHub
- URL: https://github.com/wintersolid/guesstheflag2
- Owner: WinterSolid
- Created: 2025-07-07T19:11:31.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-09T19:36:41.000Z (11 months ago)
- Last Synced: 2025-09-04T06:49:28.556Z (10 months ago)
- Topics: dispatchqueue-main-asyncafter, geometryreader, swift5, swiftui
- Language: Swift
- Homepage:
- Size: 144 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GuessTheFlag2 – SwiftUI Flag Quiz App
A simple SwiftUI game that challenges users to identify the correct flag from a list of countries.
## Features
- Displays 3 unique random country flags
- Asks user to tap the correct one based on a country name
- Works in both portrait and landscape modes
- Immediate feedback with animated result overlay
- Automatically generates a new round after each attempt
## Technologies
- Swift 5
- SwiftUI
- GeometryReader for responsive layout
- ZStack and VStack/HStack for adaptive UI
## Screenshots
| Portrait | Landscape |
|---------|-----------|


## Getting Started
1. Open the project in Xcode.
2. Run the app on a simulator or device.
## Future Improvements
- Add more flags
- Score user
## License
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.