add public initializer in class

This commit is contained in:
desp0o
2025-04-18 20:16:29 +04:00
parent 91136a743b
commit eb28cfcbec
2 changed files with 2 additions and 0 deletions
@@ -27,6 +27,8 @@ public struct ToastItemModel: Identifiable, Equatable {
public class ToastStackManager: ObservableObject {
@Published var toasts: [ToastItemModel] = []
public init() { }
func show(title: String, toastColor: ToastColorTypes, autoDisappearDuration: TimeInterval = 2.0) {
let toast = ToastItemModel(
title: title,