removed bad code that i copied from the Toggle.

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-01-12 15:54:02 -06:00
parent 7e0d9ef0f7
commit 1b4d7f0f2a

View File

@ -29,16 +29,7 @@ open class Tilet: VDS.Tilet, VDSMoleculeViewProtocol {
}
open func updateView(_ size: CGFloat) {}
open override func updateView() {
super.updateView()
//we want to overwrite the VDS color that is set in the ToggleBase
//for surface since the Atomic controls doesn't look at
//surface today for its views. We just want to show whatever
//the current parent's background color.
backgroundColor = .clear
}
public func viewModelDidUpdate() {
surface = viewModel.surface
titleModel = viewModel.title
@ -51,19 +42,9 @@ open class Tilet: VDS.Tilet, VDSMoleculeViewProtocol {
textPercentage = viewModel.textPercentage
}
//Return the same height as the internal ToggleBase.toggleContainerSize.height
//since this is a class func, we can't reference it directly
public static func estimatedHeight(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat? {
nil
100
}
}
// MARK: - MVMCoreUIViewConstrainingProtocol
extension Tilet: MVMCoreUIViewConstrainingProtocol {
public func needsToBeConstrained() -> Bool { true }
public func horizontalAlignment() -> UIStackView.Alignment { .trailing }
}