SamuKata
kavsoft
kavsoft

patreon


Interactive Toasts SwiftUI | Xcode 16

Source Code For Interactive Toasts SwiftUI | Xcode 16,

Download Code πŸ‘‡

Interactive Toasts SwiftUI | Xcode 16

Comments

Did you get a solution to this ?

Franklin Byaruhanga

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.

Life Utility Apps

I'm having trouble hiding the status bar in secondary NavigationStacks. It seems like inside the RootView at this line: window.isHidden = false

Goals TV

It will be nice to have the link to the videos in YouTube in the description as well

hebert Gerardo Godoy Zapata


More Creators