Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
JHawk0224 committed Mar 25, 2024
1 parent 130e406 commit a0a1ef5
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions content/homework/hw4.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ Your app should have at least three screens:
* A screen showing some previous search of a location and the results from that query.

Therefore you will need some way to save any given search, or the results from that search (probably two buttons on the weather detail screen). Then you will need a way to navigate to these saved search locations, and a way to see prior saved results. You need to decide how it's best to navigate between these, but we recommend one of the following:
* `NavigationSplitView` similar to what we had with the [Minicourse Browser](https://github.com/cis1951/lec5-code) and [iOstagram](https://github.com/cis1951/lec8-code) where saved locations would appear on the side bar. The left sidebar could be split into two sections (two lists), one on top showing the saved locations, and one on the bottom showing the saved results.
* A `TabView` with the `.tabViewStyle(PageTabViewStyle(indexDisplayMode: .never))` modifier. Then you can swipe to navigate between saved locations, if they're there. Then you can decide how else to navigate to the saved search results.
* `NavigationSplitView` similar to what we had with the [Minicourse Browser](https://github.com/cis1951/lec5-code) and [iOstagram](https://github.com/cis1951/lec8-code) where saved locations would appear on the side bar. The left sidebar could be split into two sections (two lists), one on top showing the saved locations, and one on the bottom showing the saved results.
* A `TabView` with the `.tabViewStyle(PageTabViewStyle(indexDisplayMode: .never))` modifier. Then you can swipe to navigate between saved locations, if they're there. Then you can decide how else to navigate to the saved search results.

Specifically, the weather detail screen should:
1. Show the location that the weather was queried at.
Expand Down Expand Up @@ -337,13 +337,12 @@ This assignment is worth 100 points, broken down as follows:

### Persistent Data Storage (25 points)
* 5 points: Decided on appropraite types of persistent storage for data

There are 2 places where data needs to be stored, and each is worth 10 points:
If UserDefaults is used:
* 10 points: Correctly uses @AppStorage wrapper on variable and variable is properly used in the code
Anything else:
* 5 points: App correctly sets up whichever framework was chosen
* 5 points: App correctly sets uses whichever framework was chosen, and writes/reads data from it correctly
* There are 2 places where data needs to be stored, and each is worth 10 points:
- If UserDefaults is used:
* 10 points: Correctly uses @AppStorage wrapper on variable and variable is properly used in the code
- Anything else:
* 5 points: App correctly sets up whichever framework was chosen
* 5 points: App correctly sets uses whichever framework was chosen, and writes/reads data from it correctly

### App Architecture (15 points)
* 5 points: App uses a model struct to represent the locations and weather data
Expand Down

0 comments on commit a0a1ef5

Please sign in to comment.