JDStatusBarNotification icon indicating copy to clipboard operation
JDStatusBarNotification copied to clipboard

Implementing to handle multiple notification

Open deep60 opened this issue 9 months ago • 0 comments

Here's what the implementation involves:

  1. NotificationQueue: A new class that manages a queue of notifications:
    • Maintains a FIFO queue of notifications
    • Ensures notifications are presented sequentially
    • Handles automatic dismissal with duration
    • Manages the state of currently presenting notifications
  2. NotificationPresenter Changes:
    • Added a notification queue instance
    • Modified presentation methods to utilize the queue
    • Updated dismissal to function with the queue
    • Maintains backward compatibility with the existing API
  3. SwiftUI Integration:
    • Updated the SwiftUI modifier to operate with the queue
    • Improved state tracking for multiple notifications
    • Enhanced handling of notification IDs and state management

deep60 avatar Mar 16 '25 11:03 deep60