scalessec / Toast

An Objective-C category that adds toast notifications to the UIView object class.
MIT License
3.87k stars 714 forks source link

Add a way to empty the cs_toastQueue. #100

Closed chrispolson-si closed 7 years ago

chrispolson-si commented 7 years ago

I'm using the toast library to display chat messages when the user is not on the chat screen. So if there are 5 messages, "A", "B", "C", "D", "E" all queued up... A will show for 2 seconds... then B will show for 2 seconds etc.

However, if the user now decides to open the full chat window... they will continue to get "C", "D", and "E"... but at this point it is unwanted because the user can see all the message in the full chat window of the app.

There needs to be a way to clear all currently queued toasts.

scalessec commented 7 years ago

Added in 4.0.0. Currently on master.