Skip to content

Conversation

@deep60
Copy link

@deep60 deep60 commented Mar 16, 2025

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

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.

1 participant