removed bad code that i copied from the Toggle.
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
7e0d9ef0f7
commit
1b4d7f0f2a
@ -30,15 +30,6 @@ open class Tilet: VDS.Tilet, VDSMoleculeViewProtocol {
|
|||||||
|
|
||||||
open func updateView(_ size: CGFloat) {}
|
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() {
|
public func viewModelDidUpdate() {
|
||||||
surface = viewModel.surface
|
surface = viewModel.surface
|
||||||
titleModel = viewModel.title
|
titleModel = viewModel.title
|
||||||
@ -51,19 +42,9 @@ open class Tilet: VDS.Tilet, VDSMoleculeViewProtocol {
|
|||||||
textPercentage = viewModel.textPercentage
|
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
|
//since this is a class func, we can't reference it directly
|
||||||
public static func estimatedHeight(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat? {
|
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 }
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user