diff --git a/MVMCoreUI/Molecules/DesignedComponents/List/LeftVariable/ListLeftVariableCheckboxAllTextAndLinks.swift b/MVMCoreUI/Molecules/DesignedComponents/List/LeftVariable/ListLeftVariableCheckboxAllTextAndLinks.swift index d68c9d1f..d83e8389 100644 --- a/MVMCoreUI/Molecules/DesignedComponents/List/LeftVariable/ListLeftVariableCheckboxAllTextAndLinks.swift +++ b/MVMCoreUI/Molecules/DesignedComponents/List/LeftVariable/ListLeftVariableCheckboxAllTextAndLinks.swift @@ -10,18 +10,10 @@ import Foundation @objcMembers public class ListLeftVariableCheckboxAllTextAndLinks: TableViewCell { - //----------------------------------------------------- - // MARK: - Outlets - //------------------------------------------------------- - let checkbox = Checkbox(frame: .zero) let eyebrowHeadlineBodyLink = EyebrowHeadlineBodyLink(frame: .zero) let stack = Stack(frame: .zero) - - //----------------------------------------------------- - // MARK: - View Lifecycle - //------------------------------------------------------- - + open override func updateView(_ size: CGFloat) { super.updateView(size) stack.updateView(size) @@ -38,10 +30,6 @@ import Foundation containerHelper.constrainView(stack) } - //---------------------------------------------------- - // MARK: - Molecule - //------------------------------------------------------ - override open func reset() { super.reset() stack.reset() @@ -49,10 +37,10 @@ import Foundation public override func setWithModel(_ model: MoleculeModelProtocol?, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable : Any]?) { super.setWithModel(model, delegateObject, additionalData) - guard let model = model as? ListLeftVariableCheckboxWithRightCaretAllTextAndLinksModel else { return} + guard let model = model as? ListLeftVariableCheckboxAllTextAndLinksModel else { return} checkbox.setWithModel(model.checkbox, delegateObject, additionalData) eyebrowHeadlineBodyLink.setWithModel(model.eyebrowHeadlineBodyLink, delegateObject, additionalData) - + // Create a stack model to use for the internal stack and set the alignment of labels let checkbox = StackItemModel(percent: 10) checkbox.horizontalAlignment = .leading