Skip to content
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

Open
KyLeggiero opened this issue Jun 26, 2023 · 2 comments
Open

Add SwiftUI support #6

KyLeggiero opened this issue Jun 26, 2023 · 2 comments

Comments

@KyLeggiero
Copy link
Member

KyLeggiero commented Jun 26, 2023

A new rethinking of the API will be needed. Input and suggestions are welcome!

@castdrian
Copy link

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)

@KyLeggiero
Copy link
Member Author

I like that idea, @castdrian! Any thoughts on how it would know when to show the toast?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants