From e229e5b1840c0130ecaa356e00b4ced7842f1b66 Mon Sep 17 00:00:00 2001 From: "Pfeil, Scott Robert" Date: Tue, 5 Jan 2021 11:33:14 -0500 Subject: [PATCH] change close button size in notification --- .../Atomic/Molecules/TopNotification/NotificationXButton.swift | 2 ++ MVMCoreUI/TopAlert/MVMCoreUITopAlertBaseView.m | 2 ++ 2 files changed, 4 insertions(+) diff --git a/MVMCoreUI/Atomic/Molecules/TopNotification/NotificationXButton.swift b/MVMCoreUI/Atomic/Molecules/TopNotification/NotificationXButton.swift index 65c6e18c..d2696722 100644 --- a/MVMCoreUI/Atomic/Molecules/TopNotification/NotificationXButton.swift +++ b/MVMCoreUI/Atomic/Molecules/TopNotification/NotificationXButton.swift @@ -26,6 +26,8 @@ import Foundation adjustsImageWhenHighlighted = false accessibilityLabel = MVMCoreUIUtility.hardcodedString(withKey: "AccCloseButton") setContentCompressionResistancePriority(.defaultHigh, for: .horizontal) + heightAnchor.constraint(equalToConstant: 16.0).isActive = true + widthAnchor.constraint(equalToConstant: 16.0).isActive = true } open override func set(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable : Any]?) { diff --git a/MVMCoreUI/TopAlert/MVMCoreUITopAlertBaseView.m b/MVMCoreUI/TopAlert/MVMCoreUITopAlertBaseView.m index 11d10ff0..892a6e94 100644 --- a/MVMCoreUI/TopAlert/MVMCoreUITopAlertBaseView.m +++ b/MVMCoreUI/TopAlert/MVMCoreUITopAlertBaseView.m @@ -77,6 +77,8 @@ [[MVMCoreUISession sharedGlobal].topAlertView hideAlertView:YES completionHandler:nil]; } } centeredVertically:YES]; + [closeButton.heightAnchor constraintEqualToConstant:16.0].active = YES; + [closeButton.widthAnchor constraintEqualToConstant:16.0].active = YES; [MVMCoreUITopAlertBaseView amendAccesibilityLabelForView:closeButton]; return closeButton; }