https://github.com/binaryscraping/swiftui-toast
A Toast implementation for SwiftUI
https://github.com/binaryscraping/swiftui-toast
Last synced: 11 months ago
JSON representation
A Toast implementation for SwiftUI
- Host: GitHub
- URL: https://github.com/binaryscraping/swiftui-toast
- Owner: binaryscraping
- Created: 2022-06-14T14:00:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-09T08:46:19.000Z (about 2 years ago)
- Last Synced: 2025-01-15T07:57:40.348Z (about 1 year ago)
- Language: Swift
- Size: 21.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ToastUI
## Usage
```swift
struct ContentView: View {
@State var tostPresented = false
var body: some View {
Button("Show toast") {
toastPresented = true
}
.toast(isPresented: $toastPresented) {
ToastView(title: "This a toast")
}
}
}
```