Lesson 11: Delete Items – SwiftUI To Do List

preview_player
Показать описание
In this video we will enable the Swipe to Delete functionality for a user's created to do list items. This common pattern is used across hundreds of apps for item deletion. We'll hook up the delete action to the database and watch our items vanish in real-time as we delete them.

** Popular Series

** Get Skillshare free for 2 Months and learn iOS

** Manage all your investments from app earnings on Betterment!

** Grow your own Youtube tech channel with TubeBuddy:

#swiftUI #Swift #iOSDeveloper
Рекомендации по теме
Комментарии
Автор

thanks for the great tutorial. Just one question though, by passing userID from the View to the VM, aren't we coupling the VM & View more tightly than we would if we fetched the userId through Auth.auth().currentUser?.uid ?
Just saying.

NishantGupta_Neo
Автор

I started following the playlist for this course a few months ago and had left the app at the final state of the lesson 10 video working. I tried to resume the lessons today and saw that when I start the app I see the blank screen and not the list of saved items. if I add a new item I cannot see it. when I start the app I noticed that for a moment the list appears and then disappears.
I wanted to ask you if there is a link to be able to download the source code to see if it is completely in line so I can then investigate if the problem is due to firebase or the version of Xcode I used (much newer than the one used when recording the videos). Thank you in advance.

Автор

Great tutorials!
One question, can I and should I put the firestore query inside the vm? Just so the view is not aware of the data layer?

papiipons
Автор

I have the same code. I click on delete I am unable to delete.

roshanchaudhari