diff --git a/.swiftpm/xcode/package.xcworkspace/xcuserdata/macintoshi.xcuserdatad/UserInterfaceState.xcuserstate b/.swiftpm/xcode/package.xcworkspace/xcuserdata/macintoshi.xcuserdatad/UserInterfaceState.xcuserstate index 69b7595..53e5261 100644 Binary files a/.swiftpm/xcode/package.xcworkspace/xcuserdata/macintoshi.xcuserdatad/UserInterfaceState.xcuserstate and b/.swiftpm/xcode/package.xcworkspace/xcuserdata/macintoshi.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Sources/ToastKit/ToastStack/ToastStackManager.swift b/Sources/ToastKit/ToastStack/ToastStackManager.swift index 78a3d3c..17e72d9 100644 --- a/Sources/ToastKit/ToastStack/ToastStackManager.swift +++ b/Sources/ToastKit/ToastStack/ToastStackManager.swift @@ -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,