Skip to content

binaryscraping/swiftui-toast

Repository files navigation

ToastUI

Usage

struct ContentView: View {
    @State var tostPresented = false

    var body: some View {
        Button("Show toast") { 
            toastPresented = true 
        }
        .toast(isPresented: $toastPresented) { 
            ToastView(title: "This a toast")
        }
    }
}

About

A Toast implementation for SwiftUI

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages