Skip to content

Implementing to handle multiple notification #150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

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