diff --git a/MVMCoreUI/Atomic/Actions/AlertModel.swift b/MVMCoreUI/Atomic/Actions/AlertModel.swift index 302c48eb..889000fa 100644 --- a/MVMCoreUI/Atomic/Actions/AlertModel.swift +++ b/MVMCoreUI/Atomic/Actions/AlertModel.swift @@ -99,11 +99,12 @@ public struct AlertModel: Codable, AlertModelProtocol { // MARK: - Init //-------------------------------------------------- - public init(title: String, message: String, buttonModels: [AlertButtonModel], style: UIAlertController.Style = .alert, delegateObject: DelegateObject?) { + public init(title: String? = nil, message: String? = nil, buttonModels: [AlertButtonModel] = [], style: UIAlertController.Style = .alert, delegateObject: DelegateObject? = nil) { self.title = title self.message = message self.buttonModels = buttonModels self.preferredStyle = style + self.delegateObject = delegateObject } //--------------------------------------------------