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

feat: add option to close overlapped toasts #51

Merged
merged 2 commits into from Jan 3, 2024

Conversation

jisu15-kim
Copy link
Contributor

@jisu15-kim jisu15-kim commented Dec 31, 2023

Hello ! @BastiaanJansen
When multiple toast messages appear, the existing messages remain visible.
I suggest an option that naturally dismisses the existing messages when new toast messages overlap.

here is an example

let config = ToastConfiguration(allowToastOverlap: false)
let toast = Toast.default(
       image: UIImage(systemName: "airpodspro")!,
       title: "Airpods Pro",
       subtitle: "Connected",
       config: config
)
toast.show()

@BastiaanJansen BastiaanJansen merged commit c023c4c into BastiaanJansen:main Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants