MFTextField with forDropDownWithBothDelegates
This commit is contained in:
parent
d89b3522ee
commit
8d2f5e1de0
@ -9,8 +9,21 @@
|
||||
import Foundation
|
||||
|
||||
|
||||
fileprivate struct FormValidatorHolder {
|
||||
static var formValidator: FormValidator?
|
||||
}
|
||||
|
||||
extension FormValidationProtocol where Self: MFView {
|
||||
|
||||
var formValidator: FormValidator? {
|
||||
get {
|
||||
return FormValidatorHolder.formValidator
|
||||
}
|
||||
set(newValue) {
|
||||
FormValidatorHolder.formValidator = newValue
|
||||
}
|
||||
}
|
||||
|
||||
func setupFormValidation(delegateObject: DelegateObject?) {
|
||||
if let delegateObject = delegateObject as? MVMCoreUIDelegateObject,
|
||||
let formValidationProtocol = delegateObject.formValidationProtocol {
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
@interface MFView : UIView <MVMCoreViewProtocol, MVMCoreUIMoleculeViewProtocol>
|
||||
|
||||
@property (nullable, strong, nonatomic) FormValidator *formValidator;
|
||||
//@property (nullable, strong, nonatomic) FormValidator *formValidator;
|
||||
@property (nullable, nonatomic, strong) NSDictionary *json;
|
||||
|
||||
// Called in the initialization functions. Can setup ui here.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user