From 961625caf3eb792a04ce74095c0d6be3369d91ed Mon Sep 17 00:00:00 2001 From: "Pfeil, Scott Robert" Date: Tue, 22 Sep 2020 10:16:33 -0400 Subject: [PATCH] review update --- .../Atomic/Molecules/TopNotification/Notification.swift | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/MVMCoreUI/Atomic/Molecules/TopNotification/Notification.swift b/MVMCoreUI/Atomic/Molecules/TopNotification/Notification.swift index d8d4fc08..44ce254b 100644 --- a/MVMCoreUI/Atomic/Molecules/TopNotification/Notification.swift +++ b/MVMCoreUI/Atomic/Molecules/TopNotification/Notification.swift @@ -20,6 +20,9 @@ import Foundation public var labelStack: Stack! public var horizontalStack: Stack! + // 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() {