remove test file
This commit is contained in:
parent
201fa2be81
commit
01a36a0245
@ -1,43 +0,0 @@
|
|||||||
//
|
|
||||||
// ListLeftVariableCheckboxAllTextAndLinksCustom.swift
|
|
||||||
// MVMCoreUI
|
|
||||||
//
|
|
||||||
// Created by Scott Pfeil on 2/28/20.
|
|
||||||
// Copyright © 2020 Verizon Wireless. All rights reserved.
|
|
||||||
//
|
|
||||||
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
public class ListLeftVariableCheckboxAllTextAndLinksModelCustom: ListLeftVariableCheckboxAllTextAndLinksModel {
|
|
||||||
public override class var identifier: String {
|
|
||||||
return "listLVCBCustom"
|
|
||||||
}
|
|
||||||
|
|
||||||
required public init(from decoder: Decoder) throws {
|
|
||||||
try super.init(from: decoder)
|
|
||||||
}
|
|
||||||
|
|
||||||
public override func encode(to encoder: Encoder) throws {
|
|
||||||
try super.encode(to: encoder)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@objcMembers open class ListLeftVariableCheckboxAllTextAndLinksCustom: ListLeftVariableCheckboxAllTextAndLinks {
|
|
||||||
// MARK:- MVMCoreUIMoleculeViewProtocol
|
|
||||||
open override func set(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable : Any]?) {
|
|
||||||
super.set(with: model, delegateObject, additionalData)
|
|
||||||
|
|
||||||
// Update immediately.
|
|
||||||
eyebrowHeadlineBodyLink.stack.stackModel?.molecules[0].gone = !checkbox.isSelected
|
|
||||||
eyebrowHeadlineBodyLink.stack.restack()
|
|
||||||
|
|
||||||
// Update on press.
|
|
||||||
checkbox.actionBlock = { [weak self] in
|
|
||||||
guard let self = self else { return }
|
|
||||||
print("hello")
|
|
||||||
self.eyebrowHeadlineBodyLink.stack.stackModel?.molecules[0].gone = !self.checkbox.isSelected
|
|
||||||
self.eyebrowHeadlineBodyLink.stack.restack()
|
|
||||||
delegateObject?.moleculeDelegate?.moleculeLayoutUpdated(self)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user