struct ContentView: View {
@State var tostPresented = false
var body: some View {
Button("Show toast") {
toastPresented = true
}
.toast(isPresented: $toastPresented) {
ToastView(title: "This a toast")
}
}
}
-
Notifications
You must be signed in to change notification settings - Fork 0
binaryscraping/swiftui-toast
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A Toast implementation for SwiftUI
Resources
Stars
Watchers
Forks
Packages 0
No packages published