budgetapp's People
budgetapp's Issues
AddBudgetCategoryView Enhancement
This Is an enhancement to the AddBudgetCategoryView file. In this file. I added a @State variable array called "addedBudgetCategories" that keeps track of and stores all the new budget categories that are added to the CoreData context. In the saveOrUpdate() function in this file, every single budget category that is new is appended to the "addedBudgetCategories" array while being being stored in the CoreData context.
BudgetApp crashing due to uncaught exception
the BudgetApp is not previewing the BudgetDetailView Swift UI file. The application is unexpectedly crashing.
The crash report for this preview error mentions an "unrecognised selector sent to "BudgetCategory" instance. The issue might be related to attempting to access a "BudgetCategory" instance for which the "name" property is not defined or has a value of 'nil'.
The error might also be related to property changes detected by Swift UI during view updates. There are two lines of code in the BudgetDetailView Swift file that set the values of the @State variables "name" and "total" to "". Commenting out these lines did not change the error crash report.
The only logical reason why the application is crashing might be because the "name" property is being accessed by an instance of "BudgetCategory" in the BudgetDetailView file, but it seems the property does not exist or is not being implemented for some reason.
The BudgetDetailView preview provider struct takes in a "budgetCategory" object of the type "BudgetCategory" as a parameter. This BudgetDetailView file is being set as a destination view in the BudgetListView file. In the BudgetListView, the variable "BudgetCategoryResults" holds all the budget categories stored in the CoreData context retrieved by a fetch request. Maybe the issue is related to how the BudgetCategory entities are managed or fetched. If the issue is related to this, "budgetCategory" objects whose "name" property is not defined properly is being used as a parameter for the BudgetDetailView file. I will look into this in detail to check whether correct data is being sent to the destination view.
I modified the code in the BudgetListView file to make it easier to set up the list of budget categories with the destination view being the BudgetDetailView file. I am attaching a picture of this new code.
![BudgetApp Bug Report](https://private-user-images.githubusercontent.com/54501410/293299486-a0368e8c-52eb-45dd-9ba0-b11d77eac952.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTY3NjU5MDAsIm5iZiI6MTcxNjc2NTYwMCwicGF0aCI6Ii81NDUwMTQxMC8yOTMyOTk0ODYtYTAzNjhlOGMtNTJlYi00NWRkLTliYTAtYjExZDc3ZWFjOTUyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTI2VDIzMjAwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY3MThlZTVjMTY3YTZmNzVlMjA0MGU1MGZhMTQyZjM0OWZmNTAyYmVkNzUwODY5ZmZkYTU4YWMyNDEzNDA3YzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.z18ZK18_LYqtQtZ-QrOvDoYrh9ZkIszogDdGfafFGrc)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.