Retain cycle fixes
This commit is contained in:
parent
b49b45660c
commit
776939777b
@ -130,7 +130,7 @@ open class PillButton: Button, MVMCoreUIViewConstrainingProtocol {
|
|||||||
self?.enableField(model.enabled)
|
self?.enableField(model.enabled)
|
||||||
}
|
}
|
||||||
|
|
||||||
FormValidator.setupValidation(molecule: model, delegate: delegateObject?.formHolderDelegate)
|
FormValidator.setupValidation(molecule: model, delegate: delegateObject?.formHolderDelegate)
|
||||||
}
|
}
|
||||||
|
|
||||||
open override class func estimatedHeight(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat? {
|
open override class func estimatedHeight(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat? {
|
||||||
|
|||||||
@ -14,7 +14,7 @@ import MVMCore
|
|||||||
static var defaultGroupName: String = "default"
|
static var defaultGroupName: String = "default"
|
||||||
var extraValidationBlock: (() -> Bool)?
|
var extraValidationBlock: (() -> Bool)?
|
||||||
var formRules: [FormGroupRule]?
|
var formRules: [FormGroupRule]?
|
||||||
var delegate: FormHolderProtocol?
|
weak var delegate: FormHolderProtocol?
|
||||||
var fieldMolecules: [String: FormFieldProtocol] = [:]
|
var fieldMolecules: [String: FormFieldProtocol] = [:]
|
||||||
var formActionMolecules: [FormActionFieldProtocol] = []
|
var formActionMolecules: [FormActionFieldProtocol] = []
|
||||||
var radioButtonsModelByGroup: [String: RadioButtonSelectionHelper] = [:]
|
var radioButtonsModelByGroup: [String: RadioButtonSelectionHelper] = [:]
|
||||||
|
|||||||
@ -13,7 +13,7 @@ open class MVMCoreUIDelegateObject: DelegateObject {
|
|||||||
public weak var buttonDelegate: ButtonDelegateProtocol?
|
public weak var buttonDelegate: ButtonDelegateProtocol?
|
||||||
public weak var uiTextFieldDelegate: UITextFieldDelegate?
|
public weak var uiTextFieldDelegate: UITextFieldDelegate?
|
||||||
public weak var observingTextFieldDelegate: ObservingTextFieldDelegate?
|
public weak var observingTextFieldDelegate: ObservingTextFieldDelegate?
|
||||||
public var moleculeDelegate: MoleculeDelegateProtocol?
|
public weak var moleculeDelegate: MoleculeDelegateProtocol?
|
||||||
|
|
||||||
open override func setAll(withDelegate delegate: Any) {
|
open override func setAll(withDelegate delegate: Any) {
|
||||||
super.setAll(withDelegate: delegate)
|
super.setAll(withDelegate: delegate)
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
public protocol MoleculeDelegateProtocol {
|
public protocol MoleculeDelegateProtocol: AnyObject {
|
||||||
|
|
||||||
/// returns a module for the corresponding module name.
|
/// returns a module for the corresponding module name.
|
||||||
func getModuleWithName(_ name: String?) -> [AnyHashable : Any]?
|
func getModuleWithName(_ name: String?) -> [AnyHashable : Any]?
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user