Post

Replies

Boosts

Views

Activity

Reply to Core-Data one-to-many relationship
There's no reference to the todos in the lists view. Both views just show all the lists and all of the todos. This is why regardless of what list is selected, all todos are displayed. What you need to do is pass the list object into the todos view and access the todos for the list from there and when adding a new todo to a list, you need to add it to do the respective list item. I've implemented something like this before in my apps Aside and Deadlines, take a look at the source code for an example.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’23
Reply to saving a deleted item
Perhaps if you are using core data, you are forgetting to call the save() function on the managedObjectContext variable? try? moc.save()
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’22
Reply to Core-Data one-to-many relationship
There's no reference to the todos in the lists view. Both views just show all the lists and all of the todos. This is why regardless of what list is selected, all todos are displayed. What you need to do is pass the list object into the todos view and access the todos for the list from there and when adding a new todo to a list, you need to add it to do the respective list item. I've implemented something like this before in my apps Aside and Deadlines, take a look at the source code for an example.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to Fix This Issues
One of the issues is caused by the friendManager parameter being private @StateObject var friendManager: FriendManager And for the other, maybe you have forgotten to import MapKit? import MapKit
Replies
Boosts
Views
Activity
Jan ’23