Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.18 KB

File metadata and controls

47 lines (31 loc) · 1.18 KB

Project 2 - GuessTheFlag - 100DaysOfSwiftUI Challenge

Project 2 - Day One - Day 20 of 100DaysOfSwiftUI

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

Project 2 - Day Two - Day 21 of 100DaysOfSwiftUI

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

Project 2 - Day Three - Day 22 of 100DaysOfSwiftUI

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)