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

Prevent stacking of toast messages #460

Closed pinarol closed 1 month ago

pinarol commented 1 month ago

Closes #457

Description

Upon a request from our designer, i implemented a mechanism to prevent the toasts from stacking. If the new toast has the same message, the previous one will be dismissed first.

Oct-04-2024 13-51-47

Testing Steps

SwiftUI demo app > Profile editor with oauth Switch between different avatars and observe the you see only 1 success toast at a time. Disconnect from internet, try the same thing and observe it for the fail message as well

wpmobilebot commented 1 month ago
Gravatar SwiftUI Prototype Build📲 You can test the changes from this Pull Request in Gravatar SwiftUI Prototype Build by scanning the QR code below to install the corresponding build.
App NameGravatar SwiftUI Prototype Build Gravatar SwiftUI Prototype Build
Build Number1391
Version1.0
Bundle IDcom.automattic.gravatar-sdk-demo-swiftui.prototype-build
Commitec73a99b66b99a61d1e10c4d04bedb23cab59e63
App Center BuildGravatar SDK Demo - SwiftUI #211
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.
wpmobilebot commented 1 month ago
Gravatar UIKit Prototype Build📲 You can test the changes from this Pull Request in Gravatar UIKit Prototype Build by scanning the QR code below to install the corresponding build.
App NameGravatar UIKit Prototype Build Gravatar UIKit Prototype Build
Build Number1391
Version1.0
Bundle IDcom.automattic.gravatar-sdk-demo-uikit.prototype-build
Commitec73a99b66b99a61d1e10c4d04bedb23cab59e63
App Center BuildGravatar SDK Demo - UIKit #211
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.