Skip to content
Snippets Groups Projects
Commit cece9860 authored by Peter J. Keleher's avatar Peter J. Keleher
Browse files

auto

parent 4dc4a598
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ Learn to use:
* custom views
* drawing
* gestures
* tab bar view controllers
* tab bars
* user defaults
* dynamic animations
......@@ -152,21 +152,7 @@ adding `.gesture(DragGesture ...)` at the end of your board view.
## Task 6: TabView
You should create a `TabView` in your ContentView.swift, and include
three views inside the TabView. The first one should be your board
view, and we will work on the second and third views later on. Your
`TabView` should be implemented like this:
```
TabView {
Board().tabItem {
Label("Board", systemImage: "gamecontroller")
}
Scores().tabItem {
Label("Scores", systemImage: "list.dash")
}
About().tabItem {
Label("About", systemImage: "info.circle")
}
}
```
view, and we will work on the second and third views later on.
## Task 7: Implement the *HighScores* Page
### For Model:
......@@ -197,8 +183,8 @@ struct Score: Hashable {
### For View:
You should:
- Create a new file called "Scores.swift", and create a view controller called `Scores`
- Include a `List View` in this view controller, you should use `ForEach` to traversal through the Score list we just created in the model to show the data of each game. You should include the rank, the score, and the date time of each data point.
- Create a new file called "Scores.swift", and create a view called `Scores`.
- Include a `List View` in this view, and use `ForEach` to traversal through the Score list we just created in the model to show the data of each game. You should include the rank, the score, and the date time of each data point.
**Important** The score should be sorted from high to low on the list. The data time can be any format, but should include all the information of "hour, minute, second, date and year'.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment