review update

This commit is contained in:
Pfeil, Scott Robert 2020-09-22 10:16:33 -04:00
parent f6c4609deb
commit 961625caf3

View File

@ -20,6 +20,9 @@ import Foundation
public var labelStack: Stack<StackModel>!
public var horizontalStack: Stack<StackModel>!
// Legacy constant
private static let viewHeight: CGFloat = 96.0
//--------------------------------------------------
// MARK: - Life Cycle
//--------------------------------------------------
@ -35,7 +38,7 @@ import Foundation
labelStack.restack()
horizontalStack.restack()
heightAnchor.constraint(equalToConstant: 96).isActive = true
heightAnchor.constraint(equalToConstant: Self.viewHeight).isActive = true
}
open override func updateView(_ size: CGFloat) {
@ -63,8 +66,7 @@ import Foundation
}
open override class func estimatedHeight(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat? {
// Currently hardcoded to 96 above.
return 96
return viewHeight
}
open func updateAccessibility() {