Interactive Toasts SwiftUI | Xcode 16
🕑 Added 2024-10-17 09:38:39 +0000 UTCSource Code For Interactive Toasts SwiftUI | Xcode 16,
Download Code 👇
Comments
Franklin Byaruhanga
Did you get a solution to this ?
Life Utility Apps
I noticed when I do this, if you have a stack of Toasts the one that gets dismissed appears on top and looks glitchy
Life Utility Apps
Is this a good approach for automatically dismissing the toast? Button("Success") { toastsData.add(.init { id in ToastView(id, tint: .green) .onAppear { DispatchQueue.main.asyncAfter(deadline: .now() + 2) { toastsData.delete(id) } } }) }
Life Utility Apps
This is working, but I'm wondering how to make the Toast disappear on its own after a short delay? Right now the Toast stays on the screen indefinitely until I remove it with the gesture.
Goals TV
I'm having trouble hiding the status bar in secondary NavigationStacks. It seems like inside the RootView at this line: window.isHidden = false
hebert Gerardo Godoy Zapata
It will be nice to have the link to the videos in YouTube in the description as well