altered
This commit is contained in:
parent
df5678f696
commit
62b02b2516
@ -319,9 +319,7 @@ import UIKit
|
||||
|
||||
model.updateUIDynamicError = { [weak self] in
|
||||
MVMCoreDispatchUtility.performBlock(onMainThread: {
|
||||
guard let self = self,
|
||||
model.dynamicErrorMessage != nil
|
||||
else { return }
|
||||
guard let self = self else { return }
|
||||
|
||||
model.isValid = false
|
||||
self.updateValidation(model.isValid ?? false)
|
||||
|
||||
@ -23,8 +23,10 @@ import Foundation
|
||||
public var title: String?
|
||||
public var feedback: String?
|
||||
public var dynamicErrorMessage: String? {
|
||||
didSet {
|
||||
updateUIDynamicError?()
|
||||
didSet {
|
||||
if dynamicErrorMessage != nil {
|
||||
updateUIDynamicError?()
|
||||
}
|
||||
}
|
||||
}
|
||||
public var errorMessage: String?
|
||||
|
||||
Loading…
Reference in New Issue
Block a user