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 } -} -