mvm_core_ui/MVMCoreUI/Alerts/AlertObject.swift
2023-04-18 09:07:11 -04:00

28 lines
771 B
Swift

//
// AlertObject.swift
// MVMCore
//
// Created by Suresh, Kamlesh on 7/10/20.
// Copyright © 2020 myverizon. All rights reserved.
//
import MVMCore
/// An object with properties for managing the alert.
public struct AlertObject {
/// Greedy alerts dismiss any other alerts and do not allow any other alerts to show until finished.
public var isGreedy = false
/// The alert model for the alert to show.
public var alertModel: AlertModel
public weak var alertDelegate: AlertDelegateProtocol?
public init(alertModel: AlertModel, isGreedy: Bool = false, alertDelegate: AlertDelegateProtocol? = nil) {
self.alertModel = alertModel
self.isGreedy = isGreedy
self.alertDelegate = alertDelegate
}
}