update alert model initializer to match prop requirements.

This commit is contained in:
Kyle Hedden 2023-05-05 22:03:58 -04:00
parent 8758c87714
commit ea6f04e410

View File

@ -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
}
//--------------------------------------------------