kavsoft
patreon
SwiftUI 3.0 Blog App - Medium Clone - Firebase - Async/Await - MVVM - Animation's - Xcode 13
🕑 Added 2021-08-10 21:52:30 +0000 UTCSource Code For SwiftUI 3.0 Blog App - Medium Clone - Firebase - Async/Await - MVVM - Animation's - Xcode 13.
Download Code 👇
Comments
Alexander
Can we get an update where user is able to upload images?
Kavsoft
Hi, SwiftUI uses Foreach with $Bindings, which has a wired problem. I'm not sure why it's happening, but this is a solution. Replace this Code postContent.remove(at: index) Into this DispatchQueue.main.asyncAfter(deadline: .now() + 0.05) { let _ = withAnimation(.easeInOut){ postContent.remove(at: index) } }
911
When I swipe the content The error appears "Index out of range" HOw can i solve this?