Ngl one of the simplest tutorials to follow along to and I've watched plenty. Simple UI and enough to setup this UI as a template to add additional features that other commenters are mentioning like having same products in the cart and a counter for products to either add more quantities or remove it w/o the trash icon. Thanks for the helpful vid and look forward to more!
Thanks for sharing!!👍🏿 To fix deleting all of the same sweaters from cart I found that in function removeFromBag if let removeProduct = products.firstIndex(where: {$0.id == product.id}) { products.remove(at: removeProduct) } works perfectly and only removes one instance of the same sweater from the cart 🙂
Nice tutorial, but one thing I like to had is to prevent to add existing product in cart and change the + icon for product into a minus or delete button. Thanks for great tutorial.
Just a couple of questions: What if we had different costs for different sizes? How do we add a tip option in the final checkout? Thanks a lot for this helpful video!
Created merchant id and certificate in application. The payment is processes successfully but can't see debited from my account. How to solve this problem and configure it ?
Nice video but there is some issue when we add particular sweater multiple time than we got to cart and delete one piece of sweater than it also delete all the particular sweater, so how to tackle this
Is there anyway for instead of a set image, we can replace that with a URL link and that link changed for each product? If so, please explain how thanks!
hi i have an issue with the content view when i add the foreach function my canvas doesn't preview and says "Updating took more than 5 secs" does anyone know how to fix that
Thread 1: Fatal error: No ObservableObject of type CartManager found. A View.environmentObject(_:) for CartManager may be missing as an ancestor of this view. what should i do ? i followed your steps , i can add the products but when i click on the cart it crashes