mirror of
https://github.com/Desp0o/ToastKit.git
synced 2026-06-17 14:34:30 +00:00
add public initializer in class
This commit is contained in:
Generated
BIN
Binary file not shown.
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user