Added some code to start working with the Player entity in the Core Data data model. Started but not finished the PlayerAdd screen. Added a screen to see the Player details listed. Adjusted ContentView.swift to call the Player Details view and moved the Text about things to add to ContentView out of the CommodityGraph file.
Backtracked a bit. Have not figured out how to make EnvironmentObjects work yet so removed that from the different views. Using ModelData().commodities[#] instead. Updates include: Commodity.swift: added comments about each of the fields and the history field (currently commented out); ModelData.swift: removed @Published for now; CommodityBar.swift: added a Vertical Stack to display the stock names below the associated bars of the graph, in the colour stored in the Commodity structure; Co...
Trying again to commit the ContentView.swift file (keep getting this error: error: pathspec 'Stock_Ticker_clone/Views/ContentView.swift' did not match any file(s) known to git). Might have been a case issue in the file name so I renamed it twice (once to contentview.swift and then back to ContentView.swift).
Commodity.swift: made structure Identifiable; ModelData.swift: published the commodities variable; CommodityBar.swift: created a barColour variable that is used to set the colour of the bars and is calculated based on the value of the commodity; ContentView.swift: switched from sending specific commodities to CommodityBar() to trying to use a ForEach command to send all of the commodities (not sure why it is not working).
Using SwiftUI RoundedRectangle and Rectangle commands to draw the commodity graphs. Colour is determined based on the value of the commodity not by the Commodity.Colour field.
Add the Player entity to the Data Model. Start organizing the project into folders.
Played around with some simple settings to get the menu to display better on the screen and maybe to change the text that will go with the icon.
Removed the old Project files and copied in the generic Swift Project files that we will be using as a starting point.
Committing files before I start the switch to Swift
Not sure what the changes were. Committing as I start to rebuild using Sqift.
The ability to save games
Saving and loading games was available from the start of the CoreData version of...
This was one of the first things that the new Core Data version of the program was...
Provide ability to name players
It is now possible to add and remove players. ...
Initial Commit
With the switch to using Core Data it will not be necessary to use arrrays to store...
Switch to arrays to store commodities and cash
Hi everyone; It has been quite a long time since I have done anything on this project....