BastiaanJansen/Toast-Swift

View on GitHub
Sources/Toast/Queue/ToastQueueDelegate.swift

Summary

Maintainability
A
0 mins
Test Coverage
//
//  File.swift
//  
//
//  Created by Bas Jansen on 16/09/2023.
//

import Foundation

public protocol ToastQueueDelegate: AnyObject {
    
    func willShowAnyToast(_ toast: Toast, queuedToasts: [Toast]) -> Void
    
    func didShowAnyToast(_ toast: Toast, queuedToasts: [Toast]) -> Void
    
}

extension ToastQueueDelegate {
    
    public func willShowAnyToast(toast: Toast, queuedToasts: [Toast]) {}
    
    public func didShowAnyToast(toast: Toast, queuedToasts: [Toast]) {}
    
}