Automattic / Gravatar-SDK-iOS

Gravatar SDK is a Swift library that allows you to integrate Gravatar features into your own iOS applications.
https://gravatar.com
Mozilla Public License 2.0
52 stars 5 forks source link

QE: Prevent "Avatar updated! ..." toasts from stacking #457

Closed pinarol closed 1 month ago

pinarol commented 1 month ago

A request from @Luchadores

When we change avatars quickly "Avatar updated! ..." toast messages stack too much. Can we make it so that "if one confirmation is already presented, we don’t show another one until it disappears"?

pinarol commented 1 month ago

I think we can do sth like this: If the same kind of toast is dispatched, we can remove the existing one immediately. This way we still generate toast for each selection but only 1 will be displaying at a time.

We should do a small enhancement to define "same kind of toast" in the code.