Beware of bugs in the above code; I have only proved it correct, not tried it. - Donald Knuth
Today I learn about:
- Introduction and Project Setup
- Using Stacks(VStack, HStack and ZStack) to arrange views
- Colors and Frames
- Gradients (Linear, Angular and Radial)
- Buttons and Images
- Showing alert messages
Do what you have to do until you can do what you want to do. - Oprah Winfrey
Today I learn about:
- Stacking up the buttons
- Showing player's score using alert
- Styling the flags
Do what you have to do until you can do what you want to do. - Dr Seuss
Today I completed the challenges:
- Adding @State score property to handle the score of the user
- Show current score of the user and display it as a label
- Showing alert message if the answer is wrong or right
Project 2 - Summary:
This project was about practicing new topics of SwiftUI Fundamentals:
- Buttons
- Gradients
- Colors
- HStack, VStack and ZStack
- Images
- Alerts
- Clipshapes (Capsules)