-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add SwiftUI support #6
Comments
I think extending SwiftUI components to allow using the toasts would be decent, ie. buttons and pickers, toggles, that kinda stuff can be extended to behavior of something along the lines of this, where the specified action, such as clicking the button, toggling the toggle, selecting a picker item, easily triggers a confirmation notification Button("hello") {
print("pog")
}.bezelToast(message: "wow", icon: .pogIcon) |
I like that idea, @castdrian! Any thoughts on how it would know when to show the toast? |
A new rethinking of the API will be needed. Input and suggestions are welcome!
The text was updated successfully, but these errors were encountered: