Giter VIP home page Giter VIP logo

budgetapp's People

Contributors

azamsharp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

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 Enhancement 1
BudgetApp Enhancement 2

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.