change close button size in notification
This commit is contained in:
parent
e31ddb4664
commit
e229e5b184
@ -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]?) {
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user