code review fiixes
This commit is contained in:
parent
9495e3f69c
commit
dabad14ed5
@ -319,7 +319,8 @@ import UIKit
|
||||
|
||||
model.updateUIDynamicError = { [weak self] in
|
||||
MVMCoreDispatchUtility.performBlock(onMainThread: {
|
||||
guard let self = self else { return }
|
||||
guard let self = self, model.dynamicErrorMessage != nil else { return }
|
||||
model.isValid = false
|
||||
self.updateValidation(model.isValid ?? false)
|
||||
})
|
||||
}
|
||||
|
||||
@ -23,8 +23,7 @@ import Foundation
|
||||
public var title: String?
|
||||
public var feedback: String?
|
||||
public var dynamicErrorMessage: String? {
|
||||
didSet {
|
||||
isValid = false
|
||||
didSet {
|
||||
updateUIDynamicError?()
|
||||
}
|
||||
}
|
||||
@ -47,7 +46,8 @@ import Foundation
|
||||
|
||||
/// Temporary binding mechanism for the view to update on enable changes.
|
||||
public var updateUI: ActionBlock?
|
||||
|
||||
|
||||
// TODO: Remove once updateUI is fixed with isSelected
|
||||
public var updateUIDynamicError: ActionBlock?
|
||||
|
||||
//--------------------------------------------------
|
||||
|
||||
Loading…
Reference in New Issue
Block a user