|
I've just finished theHabbit-Tracking.App Now I wolud like to implment 'removeRows'. I know I have to do this with a ForEach .onDelete and a function removeRows. It was not possible to bring it to run so far. Can help me somebody waht I'm doing wrong? Here is the code from contenView.
The rest of the app is running fine.
} |
|
|
|
Hello roosterboy Tank a lot you for your advice! I had to put the List into the NavigationView to have the Toolbar in place. Now 'onDelete()' works like aspected. Here the code of CotentView with 'onDelete() in place.
} |
|
Thank you for the solution..so the answer if that without a Foreach is impossibile to remove the row? |
SAVE 50% All our books and bundles are half price for Black Friday, so you can take your Swift knowledge further without spending big! Get the Swift Power Pack to build your iOS career faster, get the Swift Platform Pack to builds apps for macOS, watchOS, and beyond, or get the Swift Plus Pack to learn advanced design patterns, testing skills, and more.
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.