/Moonshot

Primary LanguageSwiftCreative Commons Attribution Share Alike 4.0 InternationalCC-BY-SA-4.0

Moonshot | Project 8

House Keeping

Index for Checklist:

[ ] = TO-DO
[x] = COMPLETED

Examples of completing a part or section:

"Part 2 complete"
"Section 2.1 finished"

Project 8 Specifications:

Part 1: https://www.hackingwithswift.com/100/swiftui/39

  • 1. Moonshot: Introduction
  • 2. Resizing images to fit the screen using GeometryReader
  • 3. How ScrollView lets us work with scrolling data
  • 4. Pushing new views onto the stack using NavigationLink
  • 5. Working with hierarchical Codable data
  • 6. How to lay out views in a scrolling grid

Part 2: https://www.hackingwithswift.com/100/swiftui/40

  • 1. Loading a specific kind of Codable data
  • 2. Using generics to load any kind of Codable data
  • 3. Formatting our mission view

Part 3: https://www.hackingwithswift.com/100/swiftui/41

  • 1. Showing mission details with ScrollView and GeometryReader
  • 2. Merging Codable structs
  • 3. Finishing up with one last view

Part 4 | Challenges : https://www.hackingwithswift.com/100/swiftui/42

  • 1. Add the launch date to MissionView, below the mission badge. You might choose to format this differently given that more space is available, but it’s down to you.
  • 2. Extract one or two pieces of view code into their own new SwiftUI views – the horizontal scroll view in MissionView is a great candidate, but if you followed my styling then you could also move the Rectangle dividers out too.
    • Already refactor'd and moved into their own struct view
  • 3. For a tough challenge, add a toolbar item to ContentView that toggles between showing missions as a grid and as a list.
    • Note:
      • Use enum, and use Case to use either list or grid

Credits

Information for astronauts and missions was provided by wikipedia (according to prompt)


Shield: CC BY-SA 4.0

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

CC BY-SA 4.0