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() {