change close button size in notification

This commit is contained in:
Pfeil, Scott Robert 2021-01-05 11:33:14 -05:00
parent e31ddb4664
commit e229e5b184
2 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,8 @@ import Foundation
adjustsImageWhenHighlighted = false adjustsImageWhenHighlighted = false
accessibilityLabel = MVMCoreUIUtility.hardcodedString(withKey: "AccCloseButton") accessibilityLabel = MVMCoreUIUtility.hardcodedString(withKey: "AccCloseButton")
setContentCompressionResistancePriority(.defaultHigh, for: .horizontal) 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]?) { open override func set(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable : Any]?) {

View File

@ -77,6 +77,8 @@
[[MVMCoreUISession sharedGlobal].topAlertView hideAlertView:YES completionHandler:nil]; [[MVMCoreUISession sharedGlobal].topAlertView hideAlertView:YES completionHandler:nil];
} }
} centeredVertically:YES]; } centeredVertically:YES];
[closeButton.heightAnchor constraintEqualToConstant:16.0].active = YES;
[closeButton.widthAnchor constraintEqualToConstant:16.0].active = YES;
[MVMCoreUITopAlertBaseView amendAccesibilityLabelForView:closeButton]; [MVMCoreUITopAlertBaseView amendAccesibilityLabelForView:closeButton];
return closeButton; return closeButton;
} }