Im making a to do list app in the ios 14 sdk so swiftui 2.0.
I cant use the list for the todo items because dont want the lines between items and it dont work with the animation i plan having when complete a task..
So i have made a LazyVStack inside a scrollview. and when press i press the text of the todo item the item toggle to my custom edit mode with a trashcan icon.
the .onDelete seems to only work on a List with the built in swipe to delete or editbutton...
anyone have any idea how i can delete the item stored in coredata when pressing a button?
I cant use the list for the todo items because dont want the lines between items and it dont work with the animation i plan having when complete a task..
So i have made a LazyVStack inside a scrollview. and when press i press the text of the todo item the item toggle to my custom edit mode with a trashcan icon.
the .onDelete seems to only work on a List with the built in swipe to delete or editbutton...
anyone have any idea how i can delete the item stored in coredata when pressing a button?