From 1b4d7f0f2a75a83799410a83c9123fc8e00c34bc Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Thu, 12 Jan 2023 15:54:02 -0600 Subject: [PATCH] removed bad code that i copied from the Toggle. Signed-off-by: Matt Bruce --- MVMCoreUI/Atomic/Atoms/Views/Tilet.swift | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/MVMCoreUI/Atomic/Atoms/Views/Tilet.swift b/MVMCoreUI/Atomic/Atoms/Views/Tilet.swift index 9dc5acbb..59886edf 100644 --- a/MVMCoreUI/Atomic/Atoms/Views/Tilet.swift +++ b/MVMCoreUI/Atomic/Atoms/Views/Tilet.swift @@ -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 } -} -