Retain cycle fixes

This commit is contained in:
Pfeil, Scott Robert 2020-03-23 14:28:36 -04:00
parent b49b45660c
commit 776939777b
4 changed files with 4 additions and 4 deletions

View File

@ -130,7 +130,7 @@ open class PillButton: Button, MVMCoreUIViewConstrainingProtocol {
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? {

View File

@ -14,7 +14,7 @@ import MVMCore
static var defaultGroupName: String = "default"
var extraValidationBlock: (() -> Bool)?
var formRules: [FormGroupRule]?
var delegate: FormHolderProtocol?
weak var delegate: FormHolderProtocol?
var fieldMolecules: [String: FormFieldProtocol] = [:]
var formActionMolecules: [FormActionFieldProtocol] = []
var radioButtonsModelByGroup: [String: RadioButtonSelectionHelper] = [:]

View File

@ -13,7 +13,7 @@ open class MVMCoreUIDelegateObject: DelegateObject {
public weak var buttonDelegate: ButtonDelegateProtocol?
public weak var uiTextFieldDelegate: UITextFieldDelegate?
public weak var observingTextFieldDelegate: ObservingTextFieldDelegate?
public var moleculeDelegate: MoleculeDelegateProtocol?
public weak var moleculeDelegate: MoleculeDelegateProtocol?
open override func setAll(withDelegate delegate: Any) {
super.setAll(withDelegate: delegate)

View File

@ -8,7 +8,7 @@
import Foundation
public protocol MoleculeDelegateProtocol {
public protocol MoleculeDelegateProtocol: AnyObject {
/// returns a module for the corresponding module name.
func getModuleWithName(_ name: String?) -> [AnyHashable : Any]?