review update
This commit is contained in:
parent
f6c4609deb
commit
961625caf3
@ -20,6 +20,9 @@ import Foundation
|
|||||||
public var labelStack: Stack<StackModel>!
|
public var labelStack: Stack<StackModel>!
|
||||||
public var horizontalStack: Stack<StackModel>!
|
public var horizontalStack: Stack<StackModel>!
|
||||||
|
|
||||||
|
// Legacy constant
|
||||||
|
private static let viewHeight: CGFloat = 96.0
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Life Cycle
|
// MARK: - Life Cycle
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
@ -35,7 +38,7 @@ import Foundation
|
|||||||
labelStack.restack()
|
labelStack.restack()
|
||||||
horizontalStack.restack()
|
horizontalStack.restack()
|
||||||
|
|
||||||
heightAnchor.constraint(equalToConstant: 96).isActive = true
|
heightAnchor.constraint(equalToConstant: Self.viewHeight).isActive = true
|
||||||
}
|
}
|
||||||
|
|
||||||
open override func updateView(_ size: CGFloat) {
|
open override func updateView(_ size: CGFloat) {
|
||||||
@ -63,8 +66,7 @@ import Foundation
|
|||||||
}
|
}
|
||||||
|
|
||||||
open override class func estimatedHeight(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat? {
|
open override class func estimatedHeight(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat? {
|
||||||
// Currently hardcoded to 96 above.
|
return viewHeight
|
||||||
return 96
|
|
||||||
}
|
}
|
||||||
|
|
||||||
open func updateAccessibility() {
|
open func updateAccessibility() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user