update alert model initializer to match prop requirements.
This commit is contained in:
parent
8758c87714
commit
ea6f04e410
@ -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
|
||||
}
|
||||
|
||||
//--------------------------------------------------
|
||||
|
||||
Loading…
Reference in New Issue
Block a user