Skip to content

⚡️100 Days of SwiftUI Couse by Paul Hudson Including All Challenges

Notifications You must be signed in to change notification settings

Nazarzbs/100-Days-Of-SwiftUI-by-Nazar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Solutions to Paul Hudson's "100 days of SwiftUI" projects and challenges by Nazar

This is a file that contains all of my 100 Days Of SwiftUI projects which include all challenges and extras

Project 6 - Moonshot

Image description

An app that lets users learn about the missions and astronauts that formed NASA’s Apollo space program.

  • How to use ScrollView to work with scrolling data, enabling the display of content larger than the available screen space.
  • How to push new views onto the stack using NavigationLink, allowing for navigation between different parts of the app.
  • How to work with hierarchical Codable data, making it easier to manage complex data structures.
  • How to lay out views in a scrolling grid, providing a flexible way to present items in a grid format.
  • How to load a specific kind of Codable data, ensuring precise data handling.
  • How to use generics to load any kind of Codable data, increasing the versatility of data loading functions.
  • How to format our mission view, creating a polished and user-friendly interface.
  • How to show mission details with ScrollView and containerRelativeFrame(), enhancing the presentation of detailed information.
  • How to merge Codable structs, simplifying data management and integration.

Check out the Moonshot Repository here🚀!

Project 5 - iExpense

Image description

iExpense is an expense tracker that separates personal costs from business costs.

###Learn

  • How to use UserDefaults to store and retrieve user preferences and app settings.
  • How to conform to the Codable protocol for encoding and decoding data, making it easier to save complex objects.
  • How to present modals and sheets using sheet(), providing a way to display temporary content over the current view.
  • How to delete items from a list using the onDelete() modifier, enhancing the app’s interactivity.
  • How to use the @Observable attribute to create observable objects that SwiftUI views can subscribe to, enabling reactive programming.
  • How to create forms with text fields and pickers in SwiftUI, streamlining the process of user input.

Check out the iExpense Repository here🚀!

Challenge 4 - Project Multiply Mastery

Image description

Welcome to Multiply Mastery, the ultimate edutainment app designed to make learning multiplication tables fun and engaging for kids! With vibrant graphics and playful animations, children can practice their multiplication skills while having a blast.

Learn

  • How to pass data between views in SwiftUI to maintain state and share information across different parts of the app.
  • How to use Emitter Cells to create dynamic confetti animations, enhancing the app’s visual appeal and making learning celebrations more exciting.
  • How to utilize SwiftUI’s declarative syntax to build user interfaces that are both interactive and easy to understand.
  • How to implement customizable quizzes, allowing users to select ranges and question quantities for tailored practice sessions.
  • How to incorporate third-party assets, such as Kenney’s Animal Pack, to add fun themes and characters, making the app more attractive to children.
  • How to use SwiftUI modifiers, such as onAppear and onDisappear, to trigger actions when views enter or leave the screen.

Check out the Multiply Mastery Repository here🚀!

Project 4 - Word Scramble

Image description

The game show players a random eight-letter word, and ask them to make words out of it. For example, if the starter word is “alarming” they might spell “alarm”, “ring”, “main”, and so on.

Check out the Word Scramble Repository here🚀!

Learn

  • How to use List to display rows of data in a scrollable view.
  • How to use onAppear modifier to perform actions when a view appears on screen.
  • How to use Bundle to access the app’s resources such as images, sounds, or data files.
  • How to use fatalError() to terminate the app when an impossible condition occurs, and how to identify such conditions with experience.
  • How to use UITextChecker to check the spelling and grammar of a string, and how to suggest corrections.

1

Project 3 - BetterRest

Image description

BetterRest is an app that uses machine learning to help you optimize your sleep quality based on your wake-up time, desired sleep duration, and coffee consumption. By using regression analysis, it can predict the best time for you to go to bed and adjust to your personal preferences. BetterRest is a smart and simple way to improve your health and well-being. 😴

Check out the Better Rest Repository here🚀!

Learn

  • How to create and use forms and bindings in SwiftUI to collect user input and update the UI accordingly.
  • How to use various components such as DatePicker, Stepper, and Text to display and manipulate data in different formats.
  • How to add buttons to the navigation bar and use navigation links to navigate between views.
  • How to use Create ML and Core ML to train and use a machine learning model that can perform regression analysis on your data and make predictions.
  • How to use machine learning for various purposes and scenarios, while respecting the user’s privacy and security.

1

Challenge 2 - Project Rock, Paper, Scissors

Image description

A brain training game that challenges players to win or lose at rock, paper, scissors.

Check out Rock, Paper, Scissors Game Repository here🚀!

1

Project 2 - Guess The Flag

Image description

A guessing game that helps users learn some of the many flags of the world.

Check out the Guess The Flag Repository here🚀!

Learn

  • Stacks to arrange views
  • Colors and frames
  • Gradients in SwiftUI
  • Buttons and images
  • Showing alert messages
  • Stacking up buttons
  • Showing the player’s score with an alert

Challenge 3 - GuessTheFlag

  • Add an @State property to store the user’s score, modify it when they get an answer right or wrong, then display it in the alert and in the score label.
  • When someone chooses the wrong flag, tell them their mistake in your alert message – something like “Wrong! That’s the flag of France,” for example.
  • Make the game show only 8 questions, at which point they see a final alert judging their score and can restart the game.

1 2

Challenge 1 - SwiftScale

Image description

An app that handles unit conversions.

Check out the SwiftScale Repository here🚀!

Learn

  • Build forms and sections
  • Create navigation views and navigation bar titles
  • Create tabbar views with icons.
  • Store program state with the @State and @FocusState property wrappers
  • Sreate user interface controls like TextField and Picker
  • Create views in a loop using ForEach.
  • Hiding the keyboard

1 2

Project 1 - We Spit

Image description

This project is a check-sharing app that calculates how to split a check based on the number of people and how much tip you want to leave.

Check out the We Spit Repository here🚀!

Learn

  • Build forms and sections
  • Create navigation views and navigation bar titles
  • Store program state with the @State and @FocusState property wrappers
  • Sreate user interface controls like TextField and Picker
  • Create views in a loop using ForEach.

Challenge

  • Add a header to the third section, saying “Amount per person”
  • Add another section showing the total amount for the check – i.e., the original amount plus tip value, without dividing by the number of people.
  • Change the tip percentage picker to show a new screen rather than using a segmented control, and give it a wider range of options – everything from 0% to 100%. Tip: use the range 0..<101 for your range rather than a fixed array.

1 2

About

⚡️100 Days of SwiftUI Couse by Paul Hudson Including All Challenges

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages